Part Number Hot Search : 
N60UF T201104 N60UF HRW0702A 2SB1028 0310211 330J03 BLU0201
Product Description
Full Text Search
 

To Download UPD784035Y Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 DATA SHEET
MOS INTEGRATED CIRCUIT
PD784035Y,784036Y,784037Y,784038Y
16-/8-BIT SINGLE-CHIP MICROCONTROLLERS
DESCRIPTION
The PD784038Y is based on the PD784038 with an I2C bus control function added, and is ideal for audio-visual applications. One-time PROM and EPROM versions, such as the PD78P4038Y, that can operate in the same voltage range as mask ROM versions, and various development tools are provided. The functions are explained in detail in the following User's Manual. Be sure to read this manual when designing your system.
PD784038, 784038Y Subseries User's Manual - Hardware: U11316E
78K/IV Series User's Manual - Instruction: U10905E
FEATURES
78K/IV Series Pin-compatible with PD78234 Subseries, Timer/counter 16-bit timer/counter x 3 units 16-bit timer x 1 unit PWM output: 2 outputs Standby function HALT/STOP/IDLE mode Clock division function Watchdog timer: 1 channel Clock output function Selectable from fCLK, fCLK/2, fCLK/4, fCLK/8, and fCLK/16 A/D converter: 8-bit resolution x 8 channels D/A converter: 8-bit resolution x 2 channels Supply voltage: VDD = 2.7 to 5.5 V
PD784026 Subseries, and PD784038
Subseries Higher internal memory capacity than PD78234 Subseries and PD784026 Subseries Minimum instruction execution time: 125 ns (@ 32-MHz operation) I/O ports: 64 Serial interface: 3 channels UART/IOE (3-wire serial I/O): 2 channels CSI (3-wire serial I/O, 2-wire serial I/O, I2C bus): 1 channel
APPLICATION FIELDS
Cellular phones, cordless phones, audio-visual systems, etc. Unless contextually excluded, references in this document to the PD784038Y mean PD784035Y, PD784036Y, and PD784037Y.
The information in this document is subject to change without notice.
Document No. U10741EJ1V0DS00 (1st edition) Date Published July 1997 N Printed in Japan
The mark 5 shows major revised points.
(c)
1996
PD784035Y, 784036Y, 784037Y, 784038Y
ORDERING INFORMATION
Part Number Package Internal ROM (Bytes) Internal RAM (Bytes)
PD784035YGC-xxx-3B9 PD784035YGC-xxx-8BT PD784036YGC-xxx-3B9 PD784036YGC-xxx-8BT PD784037YGC-xxx-3B9 PD784037YGC-xxx-8BT PD784037YGK-xxx-BE9 PD784038YGC-xxx-3B9 PD784038YGC-xxx-8BT PD784038YGK-xxx-BE9
Note Under development
80-pin plastic QFP (14 x 14 mm, 2.7-mm thick) 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick) 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick) 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick) 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick) 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick) 80-pin plastic TQFP (fine pitch) (12 x 12 mm) 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick) 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick) 80-pin plastic TQFP (fine pitch) (12 x 12 mm)
48 K 48 K 48 K 64 K 64 K 64 K 96 K 96 K 96 K 128 K 128 K 128 K
2048 2048 2048 2048 2048 2048 3584 3584 3584 4352 4352 4352
PD784035YGK-xxx-BE9Note 80-pin plastic TQFP (fine pitch) (12 x 12 mm)
PD784036YGK-xxx-BE9Note 80-pin plastic TQFP (fine pitch) (12 x 12 mm)
Remark xxx indicates the ROM code suffix.
2
PD784035Y, 784036Y, 784037Y, 784038Y
78K/IV Series Product Development
: Under mass production : Under development I2C bus supported Multi-master I2C bus supported
PD784038Y PD784038
PD784225Y PD784225
80-pin, ROM collection added Multi-master I2C bus supported
Standard models
PD784026
A/D, 16-bit timer, enhanced power management
Enhanced internal memory capacity Pin-compatible with the PD784026 Multi-master I2C bus supported
PD784216Y PD784216
100-pin, enhanced I/O and internal memory capacity
PD784218Y PD784218
Enhanced internal memory capacity, ROM collection added
PD784054 PD784046
ASSP models
PD784908
On-chip IEBusTM controller
On-chip 10-bit A/D
PD78F4943
56-Kbyte flash memory for CD-ROM Multi-master I2C bus supported
PD784928Y PD784928
Enhanced functions of the PD784915
PD784915
Software servo control On-chip analog circuit for VCRs Enhanced timer
3
PD784035Y, 784036Y, 784037Y, 784038Y
FUNCTIONS
Part Number Item Number of basic instructions (mnemonics) General-purpose register Minimum instruction execution time Internal memory Memory space I/O port Total Input I/O Pins with ancillary functionNote Pins with pullup resistor LEDs direct drive output Transistor direct drive Real-time output port Timer/counter ROM RAM 113 8 bits x 16 registers x 8 banks, or 16 bits x 8 registers x 8 banks (memory mapping) 125 ns/250 ns/500 ns/1000 ns (@ 32-MHz operation) 48 KBytes 2048 Bytes 64 8 56 54 24 8 4 bits x 2 or 8 bits x 1 Timer/counter 0: Timer register x 1 (16 bits) Capture register x 1 Compare register x 2 Timer/counter 1: Timer register x 1 (8/16 bits) Capture register x 1 Capture/compare register x 1 Compare register x 1 Timer/counter 2: Timer register x 1 (8/16 bits) Capture register x 1 Capture/compare register x 1 Compare register x 1 Timer 3: (8/16 bits) PWM output Serial interface A/D converter D/A converter Clock output Watchdog timer Standby Interrupt Software source Maskable Timer register x 1 Compare register x 1 Pulse output * Toggle output * PWM/PPG output * One-shot pulse output Pulse output * Real-time output (4 bits x 2) 64 KBytes 96 KBytes 3584 Bytes 128 KBytes 4352 Bytes
PD784035Y
PD784036Y
PD784037Y
PD784038Y
1 MByte with program and data spaces combined
Pulse output * Toggle output * PWM/PPG output
12-bit resolution x 2 channels UART/IOE (3-wire serial I/O) : 2 channels (on-chip baud rate generator) CSI (3-wire serial I/O, 2-wire serial I/O, I2C bus) : 1 channel 8-bit resolution x 8 channels 8-bit resolution x 2 channels Selectable from fCLK, fCLK/2, fCLK/4, fCLK/8, fCLK/16 (can also be used as 1-bit output port) 1 channel HALT/STOP/IDLE mode Hardware source 24 (internal: 17, external: 7 (variable sampling clock input: 1)) BRK instruction, BRKCS instruction, operand error Internal: 16, external: 6 * 4 programmable priority levels * 3 processing styles: vectored interrupt/macro service/context switching Non-maskable Internal: 1, external: 1
Supply voltage Package
VDD = 2.7 to 5.5 V 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick) 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick) 80-pin plastic TQFP (fine pitch) (12 x 12 mm)
Note The pins with ancillary function are included in the I/O pins.
4
PD784035Y, 784036Y, 784037Y, 784038Y
CONTENTS
1. 2. 3. 4. 5.
DIFFERENCES AMONG MODELS IN PD784038Y SUBSERIES ............................................. 7 MAJOR DIFFERENCES FROM PD784026 SUBSERIES AND PD78234 SUBSERIES ........ 8 PIN CONFIGURATION (TOP VIEW) ............................................................................................. 9 BLOCK DIAGRAM ......................................................................................................................... 11 PIN FUNCTION ............................................................................................................................... 12
5.1 5.2 5.3 Port Pins ................................................................................................................................................ 12 Non-Port Pins ....................................................................................................................................... 14 Types of Pin I/O Circuits and Connections for Unused Pins ........................................................ 16
6.
CPU ARCHITECTURE ................................................................................................................... 19
6.1 6.2 Memory Space ...................................................................................................................................... 19 CPU Registers ...................................................................................................................................... 24 6.2.1 6.2.2 6.2.3 General-purpose registers ........................................................................................................ 24 Control registers ........................................................................................................................ 25 Special function registers (SFRs) ............................................................................................. 26
7. PERIPHERAL HARDWARE FUNCTIONS ...................................................................................... 31
7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 Ports ....................................................................................................................................................... 31 Clock Generation Circuit ..................................................................................................................... 32 Real-Time Output Port ......................................................................................................................... 34 Timer/Counter ....................................................................................................................................... 35 PWM Output (PWM0, PWM1) .............................................................................................................. 37 A/D Converter ....................................................................................................................................... 38 D/A Converter ....................................................................................................................................... 39 Serial Interface ..................................................................................................................................... 40 7.8.1 7.8.2 7.9 Asynchronous serial interface/3-wire serial I/O (UART/IOE) .................................................. 41 Clocked serial interface (CSI) .................................................................................................... 43
Clock Output Function ........................................................................................................................ 44
7.10 Edge Detection Function .................................................................................................................... 45 7.11 Watchdog Timer ................................................................................................................................... 45
8.
INTERRUPT FUNCTION ................................................................................................................ 46
8.1 8.2 8.3 8.4 8.5 Interrupt Sources ................................................................................................................................. 46 Vectored Interrupt ................................................................................................................................ 48 Context Switching ................................................................................................................................ 49 Macro Service ....................................................................................................................................... 49 Application Example of Macro Service ............................................................................................. 50
5
PD784035Y, 784036Y, 784037Y, 784038Y
9. LOCAL BUS INTERFACE ............................................................................................................. 52
9.1 9.2 9.3 9.4 9.5 Memory Expansion .............................................................................................................................. 52 Memory Space ...................................................................................................................................... 53 Programmable Wait ............................................................................................................................. 54 Pseudo Static RAM Refresh Function .............................................................................................. 54 Bus Hold Function ............................................................................................................................... 54
10. STANDBY FUNCTION ................................................................................................................... 55 11. RESET FUNCTION ......................................................................................................................... 56 12. INSTRUCTION SET ........................................................................................................................ 57
5
13. ELECTRICAL SPECIFICATIONS ................................................................................................. 62 14. PACKAGE DRAWINGS ................................................................................................................. 83
5
15. RECOMMENDED SOLDERING CONDITIONS ............................................................................ 86 APPENDIX A DEVELOPMENT TOOLS .............................................................................................. 88 APPENDIX B RELATED DOCUMENTS ............................................................................................. 90
6
PD784035Y, 784036Y, 784037Y, 784038Y
1. DIFFERENCES AMONG MODELS IN PD784038Y SUBSERIES
The only difference among the PD784035Y, 784036Y, 784037Y, and 784038Y lies in the internal memory capacity. The PD78P4038Y is provided with a 128-KB one-time PROM or EPROM instead of the mask ROM of the above models. These differences are summarized in Table 1-1. Table 1-1. Differences among Models in PD784038Y Subseries
Part Number Item Internal ROM Not available 48 KBytes (mask ROM) 64 KBytes (mask ROM) 96 KBytes (mask ROM) 128 KBytes (mask ROM) 128 KBytes (one-time PROM or EPROM) Internal RAM Package 2048 Bytes 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick) 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick) 80-pin plastic TQFP (fine pitch) (12 x 12 mm) 80-pin ceramic WQFN (14 x 14 mm) 3584 Bytes 4352 Bytes
PD784031Y
PD784035Y
PD784036Y
PD784037Y
PD784038Y
PD78P4038Y
7
PD784035Y, 784036Y, 784037Y, 784038Y
2. MAJOR DIFFERENCES FROM PD784026 SUBSERIES AND PD78234 SUBSERIES
Series Name Item Number of basic instructions (mnemonics) Minimum instruction execution time 125 ns (@ 32-MHz operation) Memory space (program/data) Timer/counter 1 MByte combined 16-bit timer/counter x 1 8-/16-bit timer/counter x 2 8-/16-bit timer x 1 Clock output function Watchdog timer Serial interface Provided Provided UART/IOE (3-wire serial I/O) x 2 channels CSI (3-wire serial I/O, 2-wire serial I/O, I2C busNote) x 1 channel Interrupt Context switching Priority Standby function Operating clock Pin function MODE pin 4 levels HALT/STOP/IDLE modes Selectable from fXX/2, fXX/4, fXX/8, and fXX/16 None 2 levels HALT/STOP modes Fixed to fXX/2 Specifies ROM-less mode (always high level with Provided None UART/IOE (3-wire serial I/O) x 2 channels x 1 channel 160 ns (@ 25-MHz operation) 333 ns (@ 12-MHz operation) 64 KBytes/1 MByte 16-bit timer/counter x 1 8-bit timer/counter x 2 8-bit timer x 1 None None UART x 1 channel CSI (3-wire serial I/O, SBI)
PD784038Y Subseries PD784038 Subseries
113
PD784026 Subseries
PD78234 Subseries
65
CSI (3-wire serial I/O, SBI) x 1 channel
PD78233 and 78237)
TEST pin Device test pin Usually, low level Package 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick) 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick) 80-pin plastic TQFP (fine pitch) (12 x 12 mm) 80-pin ceramic WQFN (14 x 14 mm): 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick) 80-pin plastic TQFP (fine pitch) (12 x 12 mm): 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick) 94-pin plastic QFP (20 x 20 mm) 84-pin plastic QFJ (1150 x 1150 mil) 94-pin ceramic WQFN (20 x 20 mm): PD78P238 only None
PD784021 only
80-pin ceramic WQFN (14 x 14 mm):
PD78P4026 only
PD78P4038Y and
78P4038 only
Note
PD784038Y Subseries only
8
PD784035Y, 784036Y, 784037Y, 784038Y
3. PIN CONFIGURATION (Top View)
* 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick)
PD784035YGC-xxx-3B9, 784036YGC-xxx-3B9, 784037YGC-xxx-3B9, 784038YGC-xxx-3B9
* 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick)
PD784035YGC-xxx-8BT, 784036YGC-xxx-8BT, 784037YGC-xxx-8BT, 784038YGC-xxx-8BT
* 80-pin plastic TQFP (fine pitch) (12 x 12 mm)
PD784035YGK-xxx-BE9Note 1, 784036YGK-xxx-BE9Note 1, 784037YGK-xxx-BE9, 784038YGK-xxx-BE9
P31/TxD/SO1 P30/RxD/SI1 P27/SI0 P26/INTP5 P25/INTP4/ASCK/SCK1 P24/INTP3 P23/INTP2/CI P22/INTP1 P21/INTP0 P20/NMI AVREF3 AVREF2 ANO1 ANO0 AVSS AVREF1 AVDD P77/ANI7 P76/ANI6 P75/ANI5
P32/SCK0/SCL P33/SO0/SDA P34/TO0 P35/TO1 P36/TO2 P37/TO3 RESET VDD1 X2 X1 VSS1 P00 P01 P02 P03 P04 P05 P06 P07 P67/REFRQ/HLDAK 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 1 59 2 58 3 57 4 56 5 55 6 54 7 53 8 52 9 51 10 50 11 49 12 48 13 47 14 46 15 45 16 44 17 43 18 42 19 2021 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 4041
P74/ANI4 P73/ANI3 P72/ANI2 P71/ANI1 P70/ANI0 VDD0 P17 P16 P15 P14/TxD2/SO2 P13/TxD2/SI2 P12/ASCK2/SCK2 P11/PWM1 P10/PWM0 Note 2 TEST VSS0 ASTB/CLKOUT P40/AD0 P41/AD1 P42/AD2
Notes 1. Under development 2. TEST pin should be connected to VSS0 directly.
P66/WAIT/HLDRQ P65/WR P64/RD P63/A19 P62/A18 P61/A17 P60/A16 P57/A15 P56/A14 P55/A13 P54/A12 P53/A11 P52/A10 P51/A9 P50/A8 P47/AD7 P46/AD6 P45/AD5 P44/AD4 P43/AD3
9
PD784035Y, 784036Y, 784037Y, 784038Y
A8 to A19 AD0 to AD7 ANI0 to ANI7 ANO0, ANO1 ASCK, ASCK2 ASTB AVDD AVSS CI CLKOUT HLDAK HLDRQ NMI P00 to P07 P10 to P17 P20 to P27 P30 to P37 P40 to P47 P50 to P57 : Address Bus : Address/Data Bus : Analog Input : Analog Output : Asynchronous Serial Clock : Address Strobe : Analog Power Supply : Analog Ground : Clock Input : Clock Output : Hold Acknowledge : Hold Request : Non-maskable Interrupt : Port0 : Port1 : Port2 : Port3 : Port4 : Port5 P60 to P67 P70 to P77 PWM0, PWM1 RD REFRQ RESET RxD, RxD2 SCK0 to SCK2 SCL SDA SI0 to SI2 SO0 to SO2 TEST TO0 to TO3 TxD, TxD2 VDD0 to VDD1 VSS0 to VSS1 WAIT WR X1, X2 : Port6 : Port7 : Pulse Width Modulation Output : Read Strobe : Refresh Request : Reset : Receive Data : Serial Clock : Serial Clock : Serial Data : Serial Input : Serial Output : Test : Timer Output : Transmit Data : Power Supply : Ground : Wait : Write Strobe : Crystal
AVREF1 to AVREF3 : Reference Voltage
INTP0 to INTP5 : Interrupt from Peripherals
10
PD784035Y, 784036Y, 784037Y, 784038Y
4. BLOCK DIAGRAM
NMI INTP0 to INTP5 PROGRAMMABLE INTERRUPT CONTROLLER UART/IOE2 BAUD-RATE GENERATOR UART/IOE1 BAUD-RATE GENERATOR RxD/SI1 TxD/SO1 ASCK/SCK1 RxD2/SI2 TxD2/SO2 ASCK2/SCK2
INTP3 TO0 TO1
TIMER/COUNTER0 (16 BITS)
INTP0
TIMER/COUNTER1 (16 BITS)
CLOCKED SERIAL INTERFACE CLOCK OUTPUT 78K/IV CPU CORE ROM BUS I/F
SCK0/SCL SO0/SDA SI0 ASTB/CLKOUT AD0 to AD7 A8 to A15 A16 to A19 RD WR WAIT/HLDRQ REFRQ/HLDAK P00 to P07 P10 to P17 P20 to P27 P30 to P37 P40 to P47 P50 to P57 P60 to P67 P70 to P77 RESET TEST X1 X2 VDD0, VDD1 VSS0, VSS1
INTP1 INTP2/CI TO2 TO3
TIMER/COUNTER2 (16 BITS)
TIMER3 (16 BITS)
P00 to P03 P04 to P07
REAL-TIME OUTPUT PORT
PORT0 PORT1
PWM0 PWM1 ANO0 ANO1 AVREF2 AVREF3 ANI0 to ANI7 AVDD AVREF1 AVSS INTP5
PWM
RAM
PORT2 PORT3
D/A CONVERTER
PORT4 PORT5 PORT6
A/D CONVERTER WATCHDOG TIMER
PORT7 SYSTEM CONTROL
Remark The internal ROM and RAM capacities differ depending on the model.
11
PD784035Y, 784036Y, 784037Y, 784038Y
5. PIN FUNCTION
5.1 Port Pins
Pin Name P00 to P07 I/O I/O Alternate function - Port 0 (P0): * 8-bit I/O port * Can be used as real-time output port (4 bits x 2). * Can be set in input or output mode bitwise. * Pins set in input mode can be connected to internal pull-up resistors by software. * Can drive transistor. P10 P11 P12 P13 P14 P15 to P17 P20 P21 P22 P23 P24 P25 P26 P27 P30 P31 P32 P33 P34 to P37 P40 to P47 I/O I/O Input NMI INTP0 INTP1 INTP2/CI INTP3 INTP4/ASCK/SCK1 INTP5 SI0 RxD/S1 TxD/SO1 SCK0/SCL SO0/SDA TO0 to TO3 AD0 to AD7 Port 4 (P4): * 8-bit I/O port * Can be set in input or output mode bitwise. * Pins set in input mode can be connected to internal pull-up resistors by software. * Can drive LEDs. P50 to P57 I/O A8 to A15 Port 5 (P5): * 8-bit I/O port * Can be set in input or output mode bitwise. * Pins set in input mode can be connected to internal pull-up resistors by software. * Can drive LEDs. Port 3 (P3): * 8-bit I/O port * Can be set in input or output mode bitwise. * Pins set in input mode can be connected to internal pull-up resistors by software. I/O PWM0 PWM1 ASCK2/SCK2 RxD2/SI2 TxD2/SO2 - Port 2 (P2): * 8-bit input port * P20 cannot be used as general-purpose port pin (non-maskable interrupt). However, its input level can be checked by interrupt routine. * P22 through P27 can be connected to internal pull-up resistors by software in 6-bit units. * P25/INTP4/ASCK/SCK1 pin can operate as SCK1 output pin if so specified by CSIM1. Port 1 (P1): * 8-bit I/O port * Can be set in input or output mode bitwise. * Pins set in input mode can be connected to internal pull-up resistors by software. * Can drive LEDs. Function
12
PD784035Y, 784036Y, 784037Y, 784038Y
Pin Name P60 to P63 P64 P65 P66 P67 P70 to P77
I/O I/O
Alternate function A16 to A19 RD WR WAIT/HLDRQ REFRQ/HLDAK Port6 (P6): * 8-bit I/O port
Function
* Can be set in input or output mode bitwise. * Pins set in input mode can be connected to internal pull-up resistors by software.
I/O
AN10 to AN17
Port 7 (P7): * 8-bit I/O port * Can be set in input or output mode bitwise.
13
PD784035Y, 784036Y, 784037Y, 784038Y
5.2 Non-Port Pins
Pin Name TO0 to TO3 CI RxD RxD2 TxD TxD2 ASCK ASCK2 SDA SI0 SI1 SI2 SO0 SO1 SO2 SCK0 SCK1 SCK2 SCL NMI INTP0 INTP1 INTP2 INTP3 INTP4 INTP5 AD0 to AD7 A8 to A15 A16 to A19 RD WR WAIT REFRQ HLDRQ HLDAK ASTB I/O Output Output Output Output Input Output Input Output Output Input I/O Output I/O Input Input Output I/O Output Input Input Alternate function P34 to P37 P23/INTP2 P30/SI1 P13/SI2 P31/SO1 P14/SO2 P25/INTP4/SCK1 P12/SCK2 P33/SO0 P27 P30/RxD P13/RxD2 P33/SDA P31/TxD P14/TxD2 P32/SCL P25/INTP4/ASCK P12/ASCK2 P32/SCK0 P20 P21 P22 P23/CI P24 P25/ASCK/SCK1 P26 P40 to P47 P50 to P57 P60 to P63 P64 P65 P66/HLDRQ P67/HLDAK P66/WAIT P67/REFRQ CLKOUT Timer output Count clock input to timer/counter 2 Serial data input (UART0) Serial data input (UART2) Serial data output (UART0) Serial data output (UART2) Baud rate clock input (UART0) Baud rate clock input (UART2) Serial data input/output (2-wire serial I/O, I2C bus) Serial data input (3-wire serial I/O0) Serial data input (3-wire serial I/O1) Serial data input (3-wire serial I/O2) Serial data output (3-wire serial I/O0) Serial data output (3-wire serial I/O1) Serial data output (3-wire serial I/O2) Serial clock input/output (3-wire serial I/O0) Serial clock input/output (3-wire serial I/O1) Serial clock input/output (3-wire serial I/O2) Serial clock input/output (2-wire serial I/O, I2C bus) External interrupt requests - * Count clock input to timer/counter 1 * Capture trigger signal of CR11 or CR12 * Count clock input to timer/counter 2 * Capture trigger signal of CR22 * Count clock input to timer/counter 2 * Capture trigger signal of CR21 * Count clock input to timer/counter 0 * Capture trigger signal of CR02 - Conversion start trigger input to A/D converter Time-division address/data bus (for external memory connection) Higher address bus (for external memory connection) Higher address when address is extended (for external memory connection) Read strobe to external memory Write strobe to external memory Wait insertion Refresh pulse output to external pseudo static memory Bus hold request input Bus hold acknowledge output Latch timing output of time-division address (A0 through A7) (when accessing external memory) CLKOUT Output ASTB Clock output Function
14
PD784035Y, 784036Y, 784037Y, 784038Y
Pin Name RESET X1 X2 ANI0 to ANI7 ANO0, ANO1 AVREF1 AVREF2, AVREF3 AVDD AVSS VDD0Note1 VDD1Note1 VSS0Note2 VSS1Note2 TEST
I/O Input Input - Input Output -
Alternate function - - Chip reset
Function
Crystal connection for system clock oscillation (Clock can also be input to X1).
P70 to P77 - -
Analog voltage input to A/D converter Analog voltage output from D/A converter Reference voltage to A/D converter Reference voltage to D/A converter A/D converter power supply A/D converter GND Positive power supply of the port block Positive power supply except for the port block GND of the port block GND except for the port block Directly connect to VSS0 (IC test pin).
Notes 1. The potential of the VDD0 pin must be equal to that of the VDD1 pin. 2. The potential of the VSS0 pin must be equal to that of the VSS1 pin.
15
PD784035Y, 784036Y, 784037Y, 784038Y
5.3 Types of Pin I/O Circuits and Connections for Unused Pins
Table 5-1 shows types of pin I/O circuits and the connections for unused pins. For the input/output circuit of each type, refer to Figure 5-1. Table 5-1. Types of Pin I/O Circuits and Connections for Unused Pins
Pin Name P00 to P07 P10/PWM0 P11/PWM1 P12/ASCK2/SCK2 P13/RxD2/SI2 P14/TxD2/SO2 P15 to P17 P20/NMI P21/INTP0 P22/INTP1 P23/INTP2/CI P24/INTP3 P25/INTP4/ASCK/SCK1 8-C I/O Input: Connect to VDD0 Output: Open P26/INTP5 P27/SI0 P30/RxD/SI1 P31/TxD/SO1 P32/SCK0/SCL P33/SO0/SDA P34/TO0 to P37/TO3 P40/AD0 to P47/AD7 P50/A8 to P57/A15 P60/A16 to P63/A19 P64/RD P65/WR P66/WAIT/HLDRQ P67/REFRQ/HLDAK P70/ANI0 to P77/ANI7 20-A I/O Input: Connect to VDD0 or VSS0. Output: Open ANO0, ANO1 ASTB/CLKOUT 12 4-B Output Open 5-H 10-B 5-H I/O Input: Connect to VDD0. Output: Open 2-C Input Connect to VDD0. 2-C Connect to VDD0. 2 Input Connect to VDD0 or VSS0. 8-C 5-H I/O Circuit Type 5-H I/O I/O Recommended Connection for Unused Pins Input: Connect to VDD0 Output: Open
16
PD784035Y, 784036Y, 784037Y, 784038Y
Pin Name RESET TEST AVREF1 to AVREF3 AVSS AVDD
I/O Circuit Type 2 1-A -
I/O Input
Recommended Connection for Unused Pins - Directly connect to VSS0. Connect to VSS0.
Connect to VDD0.
Caution Connect an I/O pin whose input/output mode is unstable to VDD0 via a resistor of several 10 k (especially if the voltage on the reset input pin rises higher than the low-level input level on power application or when the mode is switched between input and output by software). Remark Because the circuit type numbers shown in the above table are commonly used with all the models in the 78K Series, these numbers of some models are not serial (because some circuits are not provided to some models).
17
PD784035Y, 784036Y, 784037Y, 784038Y
Figure 5-1. Types of Pin I/O Circuits
Type 1-A VDD0 P IN N VSS0 Type 2 IN Schmitt trigger input with hysteresis characteristics Type 5-H Schmitt trigger input with hysteresis characteristics Type 4-B VDD0 P data OUT output disable N VSS0 Push-pull output that can go into a high-impedance state (with both P-ch and N-ch off) Type 8-C VDD0 output disable input enable Type 12 N VSS0 VDD0 P Type 2-C VDD0
pullup enable
IN
pullup enable
P VDD0 P IN/OUT
data
pullup enable data
P VDD0 P IN/OUT Analog output voltage N P OUT
output disable
N VSS0
Type 10-B
VDD0
Type 20-A data
VDD0 P IN/OUT
pullup enable VDD0 data P
P output disable IN/OUT Comparator N VSS0 input enable P N N VSS0
+ -
open drain output disable
AVSS AVREF (threshold voltage)
18
PD784035Y, 784036Y, 784037Y, 784038Y
6. CPU ARCHITECTURE 6.1 Memory Space
A memory space of 1 MByte can be accessed. Mapping of the internal data area (special function registers and internal RAM) can be specified the LOCATION instruction. The LOCATION instruction must be always executed after RESET cancellation, and must not be used more than once. (1) When LOCATION 0 instruction is executed * Internal memory The internal data area and internal ROM area are mapped as follows: Part Number Internal Data Area 0F700H-0FFFFH Internal ROM Area 00000H-0BFFFH 00000H-0F6FFH 0F100H-0FFFFH 00000H-0F0FFH 10000H-17FFFH
PD784035Y PD784036Y PD784037Y PD784038Y
0EE00H-0FFFFH
00000H-0FDFFH 10000H-1FFFFH
Caution The following areas that overlap the internal data area of the internal ROM cannot be used when the LOCATION 0 instruction is executed. Part Number Unusable Area - 0F700H-0FFFFH (2304 Bytes) 0F100H-0FFFFH (3840 Bytes) 0EE00H-0FFFFH (4608 Bytes)
PD784035Y PD784036Y PD784037Y PD784038Y
* External memory
The external memory is accessed in external memory expansion mode. (2) When LOCATION 0FH instruction is executed * Internal memory The internal data area and internal ROM area are mapped as follows: Part Number Internal Data Area FF700H-FFFFFH Internal ROM Area 00000H-0BFFFH 00000H-0FFFFH FF100H-FFFFFH FEE00H-FFFFFH 00000H-17FFFH 00000H-1FFFFH
PD784035Y PD784036Y PD784037Y PD784038Y
* External memory
The external memory is accessed in external memory expansion mode.
19
20
On execution of LOCATION 0 instruction
F F F F FH
Figure 6-1. Memory Map of PD784035Y
On execution of LOCATION 0FH instruction
F F F F F H Special F F FDFH Note 1 F F FD0H FFF 0 0H F FEF FH
function registers (SFR) (256 Bytes)
0 FEF FH
F FEF FH
External memory (960 KBytes)
Note 1
General-purpose registers (128 Bytes)
0 FE8 0H 0 FE 7 FH FFE8 0H F FE 7 FH FF 7 0 0H F F 6 F FH
Internal RAM (2048 Bytes)
1 0 0 0 0H 0 F F F FH Special 0 F FDFH Note 1 0 F FD0H 0 FF 0 0H 0 FEF FH
0 FE3 1H
function registers (SFR) (256 Bytes)
0 FE0 6H
Macro service control word area (44 Bytes) Data area (512 Bytes)
FFE3 1H FFE0 6H
0 FD0 0H 0 FCF FH
F FD0 0H F FCF FH
Internal RAM (2048 Bytes)
0 F 7 0 0H 0 F 6 F FH 0 F 7 0 0H
Program/data area (1536 Bytes)
FF 7 0 0H
External memory (997120 Bytes)
Note 1
PD784035Y, 784036Y, 784037Y, 784038Y
0 BF F FH
Note 2
External memory (14080 KBytes)
Note 1
0 1 0 0 0H 0 0 F F FH
Program/data area (48 KBytes)
1 0 0 0 0H 0 F F F FH
CALLF entry area (2 KB)
0C0 0 0H 0 BF F FH 0 0 8 0 0H 0 0 7 F FH 0 0 0 8 0H 0 0 0 7 FH
Note 2
0C0 0 0H 0 BF F FH
Internal ROM (48 KBytes)
0 0 0 4 0H 0 0 0 3 FH 0 0 0 0 0H
CALLT table area (64 Bytes) Vector table area (64 Bytes)
Internal ROM (48 KBytes)
0 0 0 0 0H
0 0 0 0 0H
Notes 1. Accessed in external memory expansion mode. 2. Base area and entry area for reset or interrupt. However, the internal RAM area is not used as a reset entry area.
Figure 6-2. Memory Map of PD784036Y
On execution of LOCATION 0 instruction
F F F F FH
On execution of LOCATION 0FH instruction
F F F F F H Special F F FDFH Note 1 F F FD0H FFF 0 0H F FEF FH
function registers (SFR) (256 Bytes)
0 FEF FH
F FEF FH
External memory (960 KBytes)
Note 1
General-purpose registers (128 Bytes)
0 FE8 0H 0 FE 7 FH FFE8 0H F FE 7 FH FF 7 0 0H F F 6 F FH
Internal RAM (2048 Bytes)
1 0 0 0 0H 0 F F F FH Special 0 F FDFH Note 1 0 F FD0H 0 FF 0 0H 0 FEF FH
0 FE3 1H
function registers (SFR) (256 Bytes)
0 FE0 6H
Macro service control word area (44 Bytes) Data area (512 Bytes)
FFE3 1H FFE0 6H
PD784035Y, 784036Y, 784037Y, 784038Y
0 FD0 0H 0 FCF FH
F FD0 0H F FCF FH
Internal RAM (2048 Bytes)
0 F 7 0 0H 0 F 6 F FH 0 F 7 0 0H
Program/data area (1536 Bytes)
FF 7 0 0H
External memory (980736 Bytes)
Note 1
Note 2
0 F 6 F FH
0 F F F FH
Program/data area
Note 4
0 1 0 0 0H 0 0 F F FH
Note 3
Internal ROM (63232 Bytes)
0 0 8 0 0H 0 0 7 F FH 0 0 0 8 0H 0 0 0 7 FH 0 0 0 4 0H 0 0 0 3 FH 0 0 0 0 0H 0 0 0 0 0H
CALLF entry area (2 KBytes)
1 0 0 0 0H 0 F F F FH
CALLT table area (64 Bytes) Vector table area (64 Bytes)
Internal ROM (64 KBytes)
Note 4
0 0 0 0 0H
Notes 1. Accessed in external memory expansion mode. 2. This 2304-Byte area can be used as an internal ROM only when the LOCATION 0FH instruction is executed. 3. On execution of LOCATION 0 instruction: 63232 Bytes, on execution of LOCATION 0FH instruction: 65536 Bytes 4. Base area and entry area for reset or interrupt. However, the internal RAM area is not used as a reset entry area.
21
22
On execution of LOCATION 0 instruction
F F F F FH
Figure 6-3. Memory Map of PD784037Y
On execution of LOCATION 0FH instruction
F F F F F H Special F F FDFH Note 1 F F FD0H FFF 0 0H F FEF FH
function registers (SFR) (256 Bytes)
External memory (928 KBytes)
Note 1
0 FEF FH
F FEF FH
General-purpose registers (128 Bytes)
0 FE8 0H 0 FE 7 FH FFE8 0H F FE 7 FH FF 1 0 0H F F 0 F FH
Internal RAM (3584 Bytes)
1 8 0 0 0H 1 7 F F FH
Internal ROM
0 FE3 1H
(32768 Bytes) 1 0 0 0 0H 0 F F F FH Special function registers 0 F FDFH Note 1 0 F FD0H (256 Bytes) 0 FF 0 0H 0 FEF FH Internal RAM (3584 Bytes)
0 F 1 0 0H 0 F 0 F FH
(SFR)
0 FE0 6H
Macro service control word area (44 Bytes) Data area (512 Bytes)
FFE3 1H FFE0 6H
0 FD0 0H 0 FCF FH
F FD0 0H F FCF FH
Program/data area (3072 Bytes)
0 F 1 0 0H FF 1 0 0H 1 7 F F FH
External memory (946432 Bytes)
Note 1
PD784035Y, 784036Y, 784037Y, 784038Y
1 7 F F FH 1 0 0 0 0H
Note 2
0 F 0 F FH
Note 4
0 1 0 0 0H 0 0 F F FH
Program/data area
Note 3
Internal ROM (61696 Bytes)
0 0 8 0 0H 0 0 7 F FH 0 0 0 8 0H 0 0 0 7 FH 0 0 0 4 0H 0 0 0 3 FH 0 0 0 0 0H 0 0 0 0 0H
CALLF entry area (2 KBytes)
1 8 0 0 0H 1 7 F F FH
CALLT table area (64 Bytes) Vector table area (64 Bytes)
Internal ROM (96 KBytes)
Note 4
0 0 0 0 0H
Notes 1. Accessed in external memory expansion mode. 2. This 3840-Byte area can be used as an internal ROM only when the LOCATION 0FH instruction is executed. 3. On execution of LOCATION 0 instruction: 94464 Bytes, on execution of LOCATION 0FH instruction: 98304 Bytes 4. Base area and entry area for reset or interrupt. However, the internal RAM area is not used as a reset entry area.
Figure 6-4. Memory Map of PD784038Y
On execution of LOCATION 0 instruction
F F F F FH
On execution of LOCATION 0FH instruction
F F F F F H Special F F FDFH Note 1 F F FD0H FFF 0 0H F FEF FH
function registers (SFR) (256 Bytes)
External memory (896 KBytes)
Note 1
0 FEF FH
F FEF FH
General-purpose registers (128 Bytes)
0 FE8 0H 0 FE 7 FH FFE8 0H F FE 7 FH FEE 0 0H F EDF FH
Internal RAM (4352 Bytes)
2 0 0 0 0H 1 F F F FH
Internal ROM
0 FE3 1H
(65536 Bytes) 1 0 0 0 0H 0 F F F FH Special function registers 0 F FDFH Note 1 0 F FD0H (256 Bytes) 0 FF 0 0H 0 FEF FH Internal RAM (4352 Bytes)
0 EE 0 0H 0 EDF FH
(SFR)
0 FE0 6H
Macro service control word area (44 Bytes) Data area (512 Bytes)
FFE3 1H FFE0 6H
PD784035Y, 784036Y, 784037Y, 784038Y
0 FD0 0H 0 FCF FH
F FD0 0H F FCF FH
Program/data area (3840 Bytes)
0 EE 0 0H FEE 0 0H 1 F F F FH
External memory (912896 Bytes)
Note 1
1 F F F FH 1 0 0 0 0H
Note 2
0 EDF FH
Note 4
0 1 0 0 0H 0 0 F F FH
Program/data area
Note 3
Internal ROM (60928 Bytes)
0 0 8 0 0H 0 0 7 F FH 0 0 0 8 0H 0 0 0 7 FH 0 0 0 4 0H 0 0 0 3 FH 0 0 0 0 0H 0 0 0 0 0H
CALLF entry area (2 KBytes)
2 0 0 0 0H 1 F F F FH
CALLT table area (64 Bytes) Vector table area (64 Bytes)
Internal ROM (128 KBytes)
Note 4
0 0 0 0 0H
Notes 1. Accessed in external memory expansion mode. 2. This 4608-Byte area can be used as an internal ROM only when the LOCATION 0FH instruction is executed. 3. On execution of LOCATION 0 instruction: 126464 Bytes, on execution of LOCATION 0FH instruction: 131072 Bytes 4. Base area and entry area for reset or interrupt. However, the internal RAM area is not used as a reset entry area.
23
PD784035Y, 784036Y, 784037Y, 784038Y
6.2 CPU Registers
6.2.1 General-purpose registers
Sixteen 8-bit general-purpose registers are available. Two 8-bit registers can be also used in pairs as a 16-bit register. Of the 16-bit registers, four can be used in combination with an 8-bit register for address expansion as 24bit address specification registers. Eight banks of these registers are available which can be selected by using software or the context switching function. The general-purpose registers except V, U, T, and W registers for address expansion are mapped to the internal RAM. Figure 6-5. General-Purpose Register Format
A (R1) AX (RP0) B (R3) BC (RP1) R5 RP2 R7 RP3 V VVP (RG4) U R11 R9 VP (RP4)
X (R0) C (R2) R4 R6 R8
R10
T
UP (RP5) UUP (RG5) D (R13) E (R12) DE (RP6) TDE (RG6) H (R15) L (R14) 8 banks WHL (RG7) HL (RP7) ) indicate an absolute name.
W
Parentheses (
Caution Registers R4, R5, R6, R7, RP2, and RP3 can be used as X, A, C, B, AX, and BC registers, respectively, by setting the RSS bit of the PSW to 1. However, use this function only for recycling the program of the 78K/III Series.
24
PD784035Y, 784036Y, 784037Y, 784038Y
6.2.2 Control registers (1) Program counter (PC) The program counter is a 20-bit register whose contents are automatically updated when the program is executed. Figure 6-6. Program Counter (PC) Format
19 PC 0
(2) Program status word (PSW) This register holds the statuses of the CPU. Its contents are automatically updated when the program is executed. Figure 6-7. Program Status Word (PSW) Format
15 PSWH PSW 7 PSWL S 6 Z 5 RSS
Note
14 RBS2
13 RBS1
12 RBS0
11 -
10 -
9 -
8 -
UF
4 AC
3 IE
2 P/V
1 0
0 CY
Note
This flag is provided to maintain compatibility with the 78K/III Series. Be sure to clear this flag to 0, except when the software for the 78K/III Series is used.
(3) Stack pointer (SP) This is a 24-bit pointer that holds the first address of the stack. Be sure to write 0 to the higher 4 bits of this pointer. Figure 6-8. Stack Pointer (SP) Format
23 SP 0 0 0 0
20
0
25
PD784035Y, 784036Y, 784037Y, 784038Y
6.2.3 Special function registers (SFRs) The special function registers, such as the mode registers and control registers of the internal peripheral hardware, are registers to which special functions are allocated. These registers are mapped to a 256-Byte space of addresses 0FF00H through 0FFFFHNote. Note On execution of the LOCATION 0 instruction. FFF00H through FFFFFH on execution of the LOCATION 0FH instruction. Caution Do not access an address in this area to which no SFR is allocated. If such an address is accessed by mistake, the PD784038Y may be in the deadlock status. This deadlock status can be cleared only by inputting the RESET signal. Table 6-1 lists the special function registers (SFRs). The meanings of the symbols in this table are as follows: * Symbol ............................... Symbol indicating an SFR. the C compiler (CC78K4). * R/W .................................... Indicates whether the SFR is read-only, write-only, or read/write. R/W : Read/write R W : Read-only : Write-only This symbol is reserved for NEC's assembler
(RA78K4). It can be used as an sfr variable by the #pragma sfr command with
* Bit units for manipulation .. Bit units in which the value of the SFR can be manipulated. SFRs that can be manipulated in 16-bit units can be described as the operand sfrp of an instruction. To specify the address of this SFR, describe an even address. SFRs that can be manipulated in 1-bit units can be described as the operand of a bit manipulation instruction. * After reset .......................... Indicates the status of the register when the RESET signal has been input.
26
PD784035Y, 784036Y, 784037Y, 784038Y
Table 6-1. Special Function Registers (SFRs)
AddressNote Special Function Register (SFR) Name Symbol R/W Bit units for manipulation 1 bit 0FF00H 0FF01H 0FF02H 0FF03H 0FF04H 0FF05H 0FF06H 0FF07H 0FF0EH 0FF0FH 0FF10H 0FF12H 0FF14H 0FF15H 0FF16H 0FF17H 0FF18H 0FF19H 0FF1AH 0FF1BH 0FF1CH 0FF1DH 0FF20H 0FF21H 0FF23H 0FF24H 0FF25H 0FF26H 0FF27H 0FF2EH 0FF30H 0FF31H 0FF32H 0FF33H Port 0 buffer register H Compare register (timer/counter 0) Capture/compare register (timer/counter 0) Compare register L (timer/counter 1) Compare register H (timer/counter 1) Capture/compare register L (timer/counter 1) Capture/compare register H (timer/counter 1) Compare register L (timer/counter 2) Compare register H (timer/counter 2) Capture/compare register L (timer/counter 2) Capture/compare register H (timer/counter 2) Compare register L (timer 3) Compare register H (timer 3) Port 0 mode register Port 1 mode register Port 3 mode register Port 4 mode register Port 5 mode register Port 6 mode register Port 7 mode register Real-time output port control register Capture/compare control register 0 Timer output control register Capture/compare control register 1 Capture/compare control register 2 Port 0 Port 1 Port 2 Port 3 Port 4 Port 5 Port 6 Port 7 Port 0 buffer register L P0 P1 P2 P3 P4 P5 P6 P7 P0L P0H CR00 CR01 CR10 CR10W - CR11 CR11W - CR20 CR20W - CR21 CR21W - CR30 CR30W - PM0 PM1 PM3 PM4 PM5 PM6 PM7 RTPC CRC0 TOC CRC1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - 10H 00H 10H 00H FFH - - - - - - R R/W R/W 8 bits 16 bits - - - - - - - - - - 00H Undefined Undefined After reset
CRC2
Note
When the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is executed, "F0000H" is added to this value.
27
PD784035Y, 784036Y, 784037Y, 784038Y
AddressNote 1 Special Function Register (SFR) Name Symbol R/W Bit units for manipulation 1 bit 0FF36H 0FF38H 0FF39H 0FF3AH 0FF3BH 0FF41H 0FF43H 0FF4EH 0FF50H 0FF51H 0FF52H 0FF53H 0FF54H 0FF55H 0FF56H 0FF57H 0FF5CH 0FF5DH 0FF5EH 0FF5FH 0FF60H 0FF61H 0FF62H 0FF68H 0FF6AH 0FF70H 0FF71H 0FF72H 0FF74H 0FF7DH 0FF80H 0FF81H 0FF82H 0FF83H Prescaler mode register 0 Timer control register 0 Prescaler mode register 1 Timer control register 1 D/A conversion value setting register 0 D/A conversion value setting register 1 D/A converter mode register A/D converter mode register A/D conversion result register PWM control register PWM prescaler register PWM modulo register 0 PWM modulo register 1 One-shot pulse output control register I2C bus control register Timer register 3 Timer register 2 Timer register 1 TM1 TM1W - TM2 TM2W - TM3 TM3W - PRM0 TMC0 PRM1 TMC1 DACS0 DACS1 DAM ADM ADCR PWMC PWPR PWM0 PWM1 OSPC IICC SPRM CSIM SVA R/WNote 2
Note 3
After reset
8 bits -
16 bits 0000H
Capture register (timer/counter 0) Capture register L (timer/counter 1) Capture register H (timer/counter 1) Capture register L (timer/counter 2) Capture register H (timer/counter 2) Port 1 mode control register Port 3 mode control register Pull-up resistor option register Timer register 0
CR02 CR12 CR12W - CR22 CR22W - PMC1 PMC3 PUO TM0
R
- - - - -
-
- - - - 00H
R/W
R
- - - - - - - -
- -
0000H
-
-
- - - 11H 00H 11H 00H
R/W
-
-
- -
- -
- - - - 03H 00H Undefined 05H 00H Undefined
R R/W
-
- -
- - - - -
-
- - - - - -
00H
Prescaler mode register for serial clock Clocked serial interface mode register Slave address register
04H 00H 01H
Notes 1. When the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is executed, "F0000H" is added to this value. 2. Bit 0 is read-only. 3. Only bit 0 can be manipulated in bit units.
28
PD784035Y, 784036Y, 784037Y, 784038Y
AddressNote 1 Special Function Register (SFR) Name Symbol R/W Bit units for manipulation 1 bit 0FF84H 0FF85H 0FF86H 0FF88H 0FF89H 0FF8AH 0FF8BH 0FF8CH Clocked serial interface mode register 1 Clocked serial interface mode register 2 Serial shift register Asynchronous serial interface mode register CSIM1 CSIM2 SIO ASIM - R/W 8 bits 16 bits - - - - - R - - - W R/W R W R/W - - - - - - - - - - - - - - - - - - R R/W - - - 80H FFFFH 00H Undefined 00H After reset
Asynchronous serial interface mode register 2 ASIM2 Asynchronous serial interface status register Asynchronous serial interface status register 2 Serial receive buffer: UART0 Serial transmit shift register: UART0 Serial shift register: IOE1 ASIS ASIS2 RXB TXS SIO1 RXB2 TXS2 SIO2 BRGC BRGC2 INTM0 INTM1 SCS0 ISPR IMC MK0L MK0 MK0H MK1L STBC WDM MM HLDM CLOM PWC1 PWC2 - - - - -
Note 2 Note 2
0FF8DH
Serial receive buffer: UART2 Serial transmit shift register: UART2 Serial shift register: IOE2
0FF90H 0FF91H 0FFA0H 0FFA1H 0FFA4H 0FFA8H 0FFAAH 0FFACH 0FFADH 0FFAEH 0FFC0H 0FFC2H 0FFC4H 0FFC5H 0FFC6H 0FFC7H 0FFC8H
Baud rate generator control register Baud rate generator control register 2 External interrupt mode register 0 External interrupt mode register 1 Sampling clock select register In-service priority register Interrupt mode control register Interrupt mask register 0L Interrupt mask register 0H Interrupt mask register 1L Standby control register Watchdog timer mode register Memory expansion mode register Hold mode register Clock output mode register Programmable wait control register 1 Programmable wait control register 2
- - - - - - -
FFH 30H 00H 20H 00H
AAH AAAAH
Notes 1. When the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is executed, "F0000H" is added to this value. 2. Data can be written by using only a dedicated instruction such as "MOV STBC, #byte instruction" and "MOV WDM, #byte instruction", and cannot be written with any other instructions.
29
PD784035Y, 784036Y, 784037Y, 784038Y
AddressNote Special Function Register (SFR) Name Symbol R/W Bit units for manipulation 1 bit 0FFCCH 0FFCDH 0FFCFH Refresh mode register Refresh area specification register Oscillation stabilization time specification register 0FFD0H0FFDFH 0FFE0H 0FFE1H 0FFE2H 0FFE3H 0FFE4H 0FFE5H 0FFE6H 0FFE7H 0FFE8H 0FFE9H 0FFEAH 0FFEBH 0FFECH 0FFEDH 0FFEEH 0FFEFH Interrupt control register (INTP0) Interrupt control register (INTP1) Interrupt control register (INTP2) Interrupt control register (INTP3) Interrupt control register (INTC00) Interrupt control register (INTC01) Interrupt control register (INTC10) Interrupt control register (INTC11) Interrupt control register (INTC20) Interrupt control register (INTC21) Interrupt control register (INTC30) Interrupt control register (INTP4) Interrupt control register (INTP5) Interrupt control register (INTAD) Interrupt control register (INTSER) Interrupt control register (INTSR) Interrupt control register (INTCSI1) 0FFF0H 0FFF1H 0FFF2H 0FFF3H Interrupt control register (INTST) Interrupt control register (INTCSI) Interrupt control register (INTSER2) Interrupt control register (INTSR2) Interrupt control register (INTCSI2) 0FFF4H 0FFF5H Interrupt control register (INTST2) Interrupt control register (INTSPC) PIC0 PIC1 PIC2 PIC3 CIC00 CIC01 CIC10 CIC11 CIC20 CIC21 CIC30 PIC4 PIC5 ADIC SERIC SRIC CSIIC1 STIC CSIIC SERIC2 SRIC2 CSIIC2 STIC2 SPCIC - - - - - - - - - - - - - - - - - - - - - - - - 43H External SFR area - - - RFM RFA OSTS - R/W 8 bits 16 bits - - - 00H After reset
Note
When the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is executed, "F0000H" is added to this value.
30
PD784035Y, 784036Y, 784037Y, 784038Y
7. PERIPHERAL HARDWARE FUNCTIONS 7.1 Ports
The ports shown in Figure 7-1 are provided to make various control operations possible. Table 7-1 shows the function of each port. Ports 0 through 6 can be connected to internal pull-up resistors by software when inputting. Figure 7-1. Port Configuration
P00 Port 0 P07 P10 Port 1 P17
P20-P27
8
Port 2
P30 Port 3 P37 P40 Port 4 P47 P50 Port 5 P57 P60 Port 6 P67 P70 Port 7 P77
31
PD784035Y, 784036Y, 784037Y, 784038Y
Table 7-1. Port Functions
Port Name Pin Name Function Specification of Pull-up Resistor Connection by Software Port 0 P00 to P07 * Can be set in input or output mode in 1-bit units. * Can operate as 4-bit real-time output port (P00 through P03 and P04 through P07) * Can drive transistor. Port 1 P10 to P17 * Can be set in input or output mode in 1-bit units. * Can drive LEDs. Port 2 Port 3 P20 to P27 P30 to P37 * Input port * Can be set in input or output mode in 1-bit units. Port 4 P40 to P47 * Can be set in input or output mode in 1-bit units. * Can drive LEDs. Port 5 P50 to P57 * Can be set in input or output mode in 1-bit units. * Can drive LEDs. Port 6 P60 to P67 * Can be set in input or output mode in 1-bit units. Port 7 P70 to P77 * Can be set in input or output mode in 1-bit units. - All port pins in input mode All port pins in input mode All port pins in input mode In 6-bit units (P22 through P27) All port pins in input mode All port pins in input mode All port pins in input mode
7.2 Clock Generation Circuit
An on-chip clock generation circuit necessary for operation is provided. This clock generation circuit has a divider circuit. If high-speed operation is not necessary, the internal operating frequency can be lowered by the divider circuit to reduce the current consumption. Figure 7-2. Block Diagram of Clock Generation Circuit
X1 Oscillation circuit X2
fXX 1/2 1/2 1/2 1/2
Selector
fCLK CPU Peripheral circuit
fXX/2 UART/IOE INTP0 noise reduction circuit Oscillation stabilization timer
Remark fXX : oscillation frequency or external clock input fCLK: internal operating frequency
32
PD784035Y, 784036Y, 784037Y, 784038Y
Figure 7-3. Example of Using Oscillation Circuit (1) Crystal/ceramic oscillation
PD784038Y
VSS1 X1
X2
(2) External clock * EXTC bit of OSTS = 1 * EXTC bit of OSTS = 0
PD784038Y
X1
PD784038Y
X1
PD74HC04, etc.
X2
Open
X2
Caution When using the clock oscillation circuit, wire the dotted portion in the above figure as follows to avoid adverse influences of wiring capacitance. * Keep the wiring length as short as possible. * Do not cross the wiring with other signal lines. * Do not route the wiring in the vicinity of lines through which a high alternating current flows. * Always keep the potential at the ground point of the capacitor in the oscillation circuit the same as VSS1. Do not ground to a ground pattern through which a high current flows. * Do not extract signals from the oscillation circuit.
33
PD784035Y, 784036Y, 784037Y, 784038Y
7.3 Real-Time Output Port
The real-time output port outputs data stored in a buffer in synchronization with the coincidence interrupt generated by timer/counter 1 or with an external interrupt. As a result, pulses without jitter can be output. The real-time output port is therefore ideal for applications where arbitrary patterns must be output at specific intervals (such as open loop control of a stepping motor). The real-time output port mainly consists of port 0 and port 0 buffer registers (P0H and P0L) as shown in Figure 7-4. Figure 7-4. Block Diagram of Real-Time Output Port
Internal bus
8
4
4
Real-time output port control register (RTPC)
Buffer register 8 P0H P0L
INTP0 (from external source) INTC10 (from timer/counter 1) INTC11 (from timer/counter 1) Output trigger control circuit
4
4
Output latch (P0)
P07
P00
34
PD784035Y, 784036Y, 784037Y, 784038Y
7.4 Timer/Counter
Three units of timers/counters and one unit of timer are provided. Because a total of seven interrupt requests are supported, these timers/counters and timer can be used as seven units of timers/counters. Table 7-2. Operations of Timers/Counters
Name Item Count width 8 bits 16 bits Operation mode Interval timer External event counter One-shot timer Function Timer output Toggle output PWM/PPG output One-shot pulse outputNote Real-time output Pulse width measurement Number of interrupt requests - 1 input 2 1 input 2 - 2ch - - - - - - - 2 inputs 2 2ch 2ch 2ch 2ch 1ch - - - - - - - - 1 - Timer/Counter 0 Timer/Counter 1 Timer/Counter 2 Timer 3
Note
The one-shot pulse output function makes a pulse output level active by software and inactive by hardware (interrupt request signal). This function is different in nature from the one-shot timer function of timer/counter 2.
35
PD784035Y, 784036Y, 784037Y, 784038Y
Figure 7-5. Block Diagram of Timers/Counters Timer/counter 0
Clear control Selector Software trigger
fXX/8
Prescaler
Timer register 0 (TM0)
OVF
Compare register (CR01)
Match
Pulse output control
Compare register (CR00)
Match
TO0
TO1
INTP3
Edge detection INTP3
Capture register (CR02)
INTC00 INTC01
Timer/counter 1
Clear control Selector
fXX/8
Prescaler
Timer register 1 (TM1/TM1W)
OVF
Event input
Compare register (CR10/CR10W)
Match
INTC10 To real-time output port
INTP0
Edge detection INTP0
Capture/Compare register (CR11/CR11W)
Match
INTC11
Capture register (CR12/CR12W)
Timer/counter 2
Clear control Selector
fXX/8
Prescaler
Timer register 2 (TM2/TM2W)
OVF
INTP2/CI
Edge detection INTP2
Capture/Compare register (CR21/CR21W)
Match
Pulse output control
Compare register (CR20/CR20W)
Match
TO2
TO3
INTP1
Edge detection INTP1
Capture register (CR22/CR22W)
INTC20 INTC21
Timer 3
fXX/8 Prescaler Timer register 3 (TM3/TM3W) Clear
Capture register (CR30/CR30W)
match
CSI
INTC30
Remark OVF: overflow flag
36
PD784035Y, 784036Y, 784037Y, 784038Y
7.5 PWM Output (PWM0, PWM1)
Two channels of PWM (pulse width modulation) output circuits with a resolution of 12 bits and a repeat frequency of 62.5 kHz (fCLK = 16 MHz) are provided. Both these PWM output channels can select a high or low level as the active level. These outputs are ideal for controlling the speed of a DC motor. Figure 7-6. Block Diagram of PWM Output Unit
Internal bus 16 PWM modulo register PWMn 15 8 87 43 0 8 PWM control register (PWMC)
4 Reload control
fCLK
Prescaler
8-bit down counter
Pulse control circuit 4-bit counter
Output control
PWMn (output pin)
1/256
Remark n = 0 or 1
37
PD784035Y, 784036Y, 784037Y, 784038Y
7.6 A/D Converter
An analog-to-digital (A/D) converter with eight multiplexed inputs (ANI0 through ANI7) is provided. This A/D converter is of successive approximation type. The result of conversion is retained by an 8-bit A/D conversion result register (ADCR). Therefore, high-speed, high-accuracy conversion can be performed (conversion time: approx. 7.5 s at fCLK = 16 MHz). A/D conversion can be started in either of the following two modes: * Hardware start: Conversion is started by trigger input (INTP5). * Software start: Conversion is started by setting a bit of the A/D converter mode register (ADM). After started, the A/D converter operates in the following modes: * Scan mode: Two or more analog inputs are sequentially selected, and data to be converted are obtained from all the input pins. * Select mode: Only one analog input pin is used to continuously obtain converted values. These operation modes and whether starting or stopping the A/D converter are specified by the ADM. When the result of conversion is transferred to the ADCR, interrupt request INTAD is generated. By using this request and macro service, the converted values can be successively transferred to the memory. Figure 7-7. Block Diagram of A/D Converter
ANI0 ANI1 ANI2 ANI3 ANI4 ANI5 ANI6 ANI7
Input selector
Sample & hold circuit
Series resistor string AVREF1 R/2 Voltage comparator R
Successive approximation register (SAR) Edge detection circuit Conversion trigger INTAD
INTP5
Control Circuit
Tap selector
R/2 AVSS
Trigger enable 8 A/D converter mode register (ADM) A/D conversion result register (ADCR)
8
8
Internal bus
38
PD784035Y, 784036Y, 784037Y, 784038Y
7.7 D/A Converter
Two circuits of digital-to-analog (D/A) converters are provided. These D/A converters are of voltage output type and have a resolution of 8 bits. The conversion method is of R-2R resistor ladder type. By writing a value to be output to an 8-bit D/A conversion value setting register (DACSn: n = 0 or 1), an analog value is output to the ANOn (n = 0 or 1) pin. The output voltage range is determined by the voltage applied across the AVREF2 and AVREF3 pins. Because the output impedance is high, no current can be extracted from the output. If the impedance of the load is low, insert a buffer amplifier between the load and output pin. The ANOn pin goes into a high-impedance state while the RESET signal is low. When the RESET signal is deasserted, DACSn is cleared to 0. Figure 7-8. Block Diagram of D/A Converter
ANOn 2R AVREF2 R
2R
Selector
R
2R AVREF3 R
2R
DACSn
DACEn
Internal bus
Remark n = 0 or 1
39
PD784035Y, 784036Y, 784037Y, 784038Y
7.8 Serial Interface
Three independent serial interface channels are provided. * Asynchronous serial interface (UART)/3-wire serial I/O (IOE) x 2 * Clocked serial interface (CSI) x 1 * 3-wire serial I/O (IOE) * 2-wire serial I/O (IOE) * I2C bus interface (I2C) Therefore, communication with an external system and local communication within the system can be simultaneously executed (refer to Figure 7-9). Figure 7-9. Example of Serial Interface (a) UART + I2C
PD784038Y (master)
PD4711A
[UART] RxD RS-232-C driver/receiver TxD Port [I C] SDA SCL SDA SCL
2
VDD
VDD
PD6272 (EEPROMTM)
PD78062Y (slave)
SDA LCD
PD4711A
[UART] RxD2 RS-232-C driver/receiver TxD2 Port
SCL
(b) UART + 3-wire serial I/O + 2-wire serial I/O
PD784038Y (master)
PD4711A
[UART] RxD RS-232-C driver/receiver TxD Port SO1 SI1 SCK1 INTPm Port VDD VDD Note [3-wire serial I/O]
PD75108 (slave)
SI SO SCK Port INT
PD78014 (slave)
SDA SCL INTPn Port [2-wire serial I/O] Note SB0 SCK0 Port INT
Note
Handshake line
40
PD784035Y, 784036Y, 784037Y, 784038Y
7.8.1 Asynchronous serial interface/3-wire serial I/O (UART/IOE)
Two channels of serial interfaces that can select an asynchronous serial interface mode and 3-wire serial I/O mode are provided. (1) Asynchronous serial interface mode In this mode, data of 1 byte following the start bit is transferred or received. Because an on-chip baud rate generator is provided, a wide range of baud rates can be set. Moreover, the clock input to the ASCK pin can be divided to define a baud rate. When the baud rate generator is used, a baud rate conforming to the MIDI standard (31.25 kbps) can be also obtained. Figure 7-10. Block Diagram in Asynchronous Serial Interface Mode
Internal bus
Receive buffer
RXB, RXB2
RXD, RXD2
Receive shift register
Transmit shift register
TXS, TXS2
TXD, TXD2
Receive control parity check
INTSR, INTSR2 INTSER, INTSER2
Trnsmit control Parity append
INTST, INTST2
Baud rate generator
1/2m fXX/2 ASCK, ASCK2
Selector
1/2n+1 1/2m
Remark fXX: oscillation frequency or external clock input n = 0 through 11 m = 16 through 30
41
PD784035Y, 784036Y, 784037Y, 784038Y
(2) 3-wire serial I/O mode In this mode, the master device starts transfer by making the serial clock active and transfers 1-byte data in synchronization with this clock. This mode is used to communicate with a device having the conventional clocked serial interface. Basically, communication is established by using three lines: one serial clock (SCK) and two serial data (SI and SO) lines. Generally, a handshake line is necessary to check the communication state. Figure 7-11. Block Diagram in 3-wire Serial I/O Mode
Internal bus
Direction control circuit
SIO1, SIO2 SI1, SI2 Shift register Output latch
SO1, SO2
SCK1, SCK2
Serial clock counter
Interrupt signal generation circuit
INTCSI1, INTCSI2
Selector
1/m
1/2n+1
fXX/2
Serial clock control circuit
Remark fXX: oscillation frequency or external clock input n = 0 through 11 m = 1 or 16 through 30
42
PD784035Y, 784036Y, 784037Y, 784038Y
7.8.2 Clocked serial interface (CSI)
In this mode, the master device starts transfer by making the serial clock active and communicates 1-byte data in synchronization with this clock. Figure 7-12. Block Diagram of Clocked Serial Interface
Internal bus
Direction control register
Slave address register Match signal
SI0 Selector SO0/SDA Shift register
Set Output latch
Reset
N-ch open drain output (in 2-wire or I2C bus mode)
Start condition detection circuit Acknowledge detection circuit
Acknowledge detection control
Wake-up control circuit
Stop condition detection circuit
INTSPC
SCK0/SCL
Serial clock counter
Interrupt signal generation circuit
INTCSI
Serial clock control circuit Selector N-ch open drain output (in 2-wire or I2C bus mode) CLS0 CLS1
Timer 3 output fXX/16
Selector
Prescaler
fXX/2
Remark fXX: oscillation frequency or external clock input
43
PD784035Y, 784036Y, 784037Y, 784038Y
(1) 3-wire serial I/O mode This mode is to communicate with devices having the conventional clocked serial interface. Basically, communication is established in this mode with three lines: one serial clock (SCK0) and two serial data (SI0 and SO0) lines. Generally, a handshake line is necessary to check the communication status. (2) 2-wire serial I/O mode This mode is to transfer 8-bit data by using two lines: serial clock (SCL) and serial data bus (SDA). Generally, a handshake line is necessary to check the communication status. (3) I2C (Inter IC) bus mode This mode is to communicate with devices conforming to the I2C bus format. This mode is to transfer 8-bit data with two or more devices by using two lines: serial clock (SCL) and serial data bus (SDA). During transfer, a "start condition", "data", and "stop condition" can be output onto the serial data bus. During reception, these data can be automatically detected by hardware.
7.9
Clock Output Function
The operating clock of the CPU can be divided and output to an external device. The pin that outputs the clock can also be used as a 1-bit port. When this function is used, the local bus interface cannot be used because the ASTB and CLKOUT pins are multiplexed. Figure 7-13. Block Diagram of Clock Output Function
fCLK fCLK/2
Selector
fCLK/4 fCLK/8 fCLK/16
Output control
CLKOUT
Output enable Output level
44
PD784035Y, 784036Y, 784037Y, 784038Y
7.10 Edge Detection Function
The interrupt input pins (NMI and INTP0 through INTP5) are used not only to input interrupt requests but also to input trigger signals to the internal hardware units. Because these pins operate at an edge of the input signal, they have a function to detect an edge. Moreover, a noise reduction circuit is also provided to prevent erroneous detection due to noise. Pin Name NMI INTP0-INTP3 INTP4, INTP5 Detectable Edge Either of rising or falling edge Either or both of rising and falling edges Noise Reduction By analog delay By clock samplingNote By analog delay
Note
INTP0 can select a sampling clock.
7.11 Watchdog Timer
A watchdog timer is provided to detect a hang up of the CPU. This watchdog timer generates a non-maskable interrupt unless it is cleared by software within a specified interval time. Once enabled to operate, the watchdog timer cannot be stopped by software. Whether the interrupt by the watchdog timer or the interrupt input from the NMI pin takes precedence can be specified. Figure 7-14. Block Diagram of Watchdog Timer
fCLK
Timer
fCLK/221 fCLK/220 fCLK/219 fCLK/217
Selector
INTWDT
Clear signal
45
PD784035Y, 784036Y, 784037Y, 784038Y
8. INTERRUPT FUNCTION
As the servicing in response to an interrupt request, the three types shown in Table 8-1 can be selected by program. Table 8-1. Servicing of Interrupt Request
Servicing Mode Vectored interrupt Entity of Servicing Software Servicing Branches and executes servicing routine (servicing is arbitrary). Context switching Automatically switches register bank, branches and executes servicing routine (servicing is arbitrary). Macro service Firmware Executes data transfer between memory and I/O (servicing is fixed) Retained Contents of PC and PSW Saves to and restores from stack. Saves to or restores from fixed area in register bank
8.1 Interrupt Sources
Table 8-2 shows the interrupt sources available. As shown, interrupts are generated by 24 types of sources, execution of the BRK instruction or BRKCS instruction, or an operand error. The priority of interrupt servicing can be set to four levels, so that nesting can be controlled during interrupt servicing and that which of the two or more interrupts that simultaneously occur should be serviced first. When the macro service function is used, however, nesting always proceeds. The default priority is the priority (fixed) of the service that is performed if two or more interrupt requests, having the same request, simultaneously generate (refer to Table 8-2).
46
PD784035Y, 784036Y, 784037Y, 784038Y
Table 8-2. Interrupt Sources
Type Software Default Priority - Name BRK instruction BRKCS instruction Operand error Source Trigger Instruction execution If result of exclusive OR between byte of operand and byte is not FFH when "MOV STBC, #byte", "MOV WDM, #byte", or "LOCATION" instruction is executed Detection of pin input edge Overflow of watchdog timer Detection of pin input edge (TM1/TM1W capture trigger, TM1/TM1W event counter input) Detection of pin input edge (TM2/TM2W capture trigger, TM2/TM2W event counter input) Detection of pin input edge (TM2/TM2W capture trigger , TM2/TM2W event counter input) Detection of pin input edge (TM0 capture trigger, TM0 event counter input) Generation of TM0-CR00 match signal Generation of TM0-CR01 match signal Generation of TM1-CR10 match signal (in 8-bit operation mode) Generation of TM1W-CR10W match signal (in 16-bit operation mode) Generation of TM1-CR11 match signal (in 8-bit operation mode) Generation of TM1W-CR11W match signal (in 16-bit operation mode) Generation of TM2-CR20 match signal (in 8-bit operation mode) Generation of TM2W-CR20W match signal (in 16-bit operation mode) Generation of TM2-CR21 match signal (in 8-bit operation mode) Generation of TM2W-CR21W match signal (in 16-bit operation mode) Generation of TM3-CR30 match signal (in 8-bit operation mode) Generation of TM3W-CR30W match signal (in 16-bit operation mode) Detection of pin input edge Detection of pin input edge End of A/D conversion (transfer of ADCR) Occurrence of ASI0 reception error End of ASI0 reception or CSI1 transfer End of ASI0 transfer End of CSI1 transfer Occurrence of ASI2 reception error End of ASI2 reception or CSI2 transfer End of ASI2 transfer I2C bus stop condition interrupt Internal/ External - - Macro service
Non-maskable Maskable
- 0 (highest)
NMI WDT INTP0
External Internal External
-
1
INTP1
2
INTP2
3 4 5 6
INTP3 INTC00 INTC01 INTC10
Internal
7
INTC11
8
INTC20
9
INTC21
10
INTC30
11 12 13 14 15 16 17 18 19 20 21 (lowest)
INTP4 INTP5 INTAD INTSER INTSR INTCSI1 INTST INTCSI INTSER2 INTSR2 INTCSI2 INTST2 INTSPC
External Internal -
-
Remark ASI: asynchronous serial interface CSI: clocked serial interface
47
PD784035Y, 784036Y, 784037Y, 784038Y
8.2 Vectored Interrupt
Execution branches to a servicing routing by using the memory contents of a vector table address corresponding to the interrupt source as the address of the branch destination. So that the CPU performs interrupt servicing, the following operations are performed: * On branching: Saves the status of the CPU (contents of PC and PSW) to stack * On returning: Restores the status of the CPU (contents of PC and PSW) from stack To return to the main routine from an interrupt service routine, the RETI instruction is used. The branch destination address is in a range of 0 to FFFFH. Table 8-3. Vector Table Address Interrupt Source BRK instruction Operand error NMI WDT INTP0 INTP1 INTP2 INTP3 INTC00 INTC01 INTC10 INTC11 INTC20 INTC21 INTC30 INTP4 INTP5 INTAD INTSER INTSR INTCSI1 INTST INTCSI INTSER2 INTSR2 INTCSI2 INTST2 INTSPC 002EH 0030H 0026H 0028H 002AH 002CH Vector Table Address 003EH 003CH 0002H 0004H 0006H 0008H 000AH 000CH 000EH 0010H 0012H 0014H 0016H 0018H 001AH 001CH 001EH 0020H 0022H 0024H
48
PD784035Y, 784036Y, 784037Y, 784038Y
8.3 Context Switching
When an interrupt request is generated or when the BRKCS instruction is executed, a predetermined register bank is selected by hardware. Context switching is a function that branches execution to a vector address stored in advance in the register bank, and to stack the current contents of the program counter (PC) and program status word (PSW) to the register bank. The branch address is in a range of 0 to FFFFH. Figure 8-1. Context Switching Operation When Interrupt Request Is Generated
0000B <7> Transfer Register bank n (n = 0 to 7) PC19-16 PC15-0 A B <2> Save (bits 8 through 11 of temporary register) <6> Exchange R5 R7 <5> Save V U Temporary register <1> Save T W D H VP UP E L X C R4 R6
Register bank n (0 to 7)
<3> Switching of register bank (RBS0 to RBS2 n) <4> RSS n IE n
PSW
8.4
Macro Service
This function is to transfer data between memory and a special function register (SFR) without intervention by the CPU. A macro service controller accesses the memory and SFR in the same transfer cycle and directly transfers data without loading it. Because this function does not save or restore the status of the CPU, or load data, data can be transferred at high speeds. Figure 8-2. Macro Service
Read CPU Memory Write Macro service controller
Write SFR Read
Internal bus
49
PD784035Y, 784036Y, 784037Y, 784038Y
8.5 Application Example of Macro Service
(1) Transfer of serial interface
Transfer data storage buffer (memory) Data n Data n-1
Data 2 Data 1
Internal bus
TxD
Transfer shift register TXS(SFR)
Transfer control
INTST
Each time macro service request (INTST) is generated, the next transfer data is transferred from memory to TXS. When data n (last byte) has been transferred to TXS (when the transfer data storage buffer has become empty), vectored interrupt request (INTST) is generated. (2) Reception of serial interface
Receive data storage buffer (memory) Data n Data n-1
Data 2 Data 1
Internal bus
Receive buffer
RXB(SFR)
RxD
Receive shift register
Reception control
INTSR
Each time macro service request (INTSR) is generated, the receive data is transferred from RXB to memory. When data n (last byte) has been transferred to memory (when the receive data storage buffer has become full), vectored interrupt request (INTSR) is generated.
50
PD784035Y, 784036Y, 784037Y, 784038Y
(3) Real-time output port INTC10 and INTC11 serve as the output triggers of the real-time output port. The macro services for these can set the following output pattern and intervals simultaneously. Therefore, INTC10 and INTC11 can control two stepping motors independently of each other. They can also be used for PWM output or to control DC motors.
Output pattern profile (memory) Pn Pn-1 Output timing profile (memory) Tn Tn-1
P2 P1
T2 T1
Internal bus
Internal bus
Match (SFR) P0L INTC10 Output latch P00-P03 TM1 CR10 (SFR)
Each time macro service request (INTC10) is generated, the pattern and timing are transferred to the buffer register (P0L) and compare register (CR10), respectively. When the contents of the timer register 1 (TM1) coincide with those of CR10, INTC10 is generated again, and the contents of P0L are transferred to the output latch. When Tn (last byte) has transferred to CR10, vectored interrupt request (INTC10) is generated. The same applies to INTC11.
51
PD784035Y, 784036Y, 784037Y, 784038Y
9. LOCAL BUS INTERFACE
The local bus interface can connect an external memory or I/O (memory mapped I/O) and support a memory space of 1 MByte (refer to Figure 9-1). Figure 9-1. Example of Local Bus Interface
PD784038Y
A16-A19 Decoder
RD WR REFRQ Pseudo SRAM PROM PD27C1001A
Character generator PD24C1000
AD0-AD7
Data bus
ASTB
Latch
A8-A15
Address bus
Gate array I/O expansion Centronics I/F, etc.
9.1
Memory Expansion
The memory capacity can be expanded in seven steps, from 256 Bytes to 1 MByte, by connecting an external program memory and data memory.
52
PD784035Y, 784036Y, 784037Y, 784038Y
9.2 Memory Space
The 1-MByte memory space is divided into eight spaces of logical addresses. Each space can be controlled by using the programmable wait function and pseudo static RAM refresh function. Figure 9-2. Memory Space
F F F F FH
512 KBytes
8 0 0 0 0H 7 F F F FH
256 KBytes 4 0 0 0 0H 3 F F F FH 128 KBytes 2 0 0 0 0H 1 F F F FH 64 KBytes 1 0 0 0 0H 0 F F F FH 16 KBytes 0C0 0 0H 0 BF F FH 16 KBytes 0 8 0 0 0H 0 7 F F FH 16 KBytes 0 4 0 0 0H 0 3 F F FH 16 KBytes 0 0 0 0 0H
53
PD784035Y, 784036Y, 784037Y, 784038Y
9.3 Programmable Wait
The memory space can be divided into eight spaces and wait states can be independently inserted in each of these spaces while the RD and WR signals are active. Even when a memory with a different access time is connected, therefore, the efficiency of the entire system does not drop. In addition, an address wait function that extends the active period of the ASTB signal is also provided so as to have a sufficient address decode time (this function can be set to the entire space).
9.4
Pseudo Static RAM Refresh Function
The following refresh operations can be performed: * Pulse refresh: A bus cycle that outputs a refresh pulse to the REFRQ pin at a fixed cycle is inserted. The memory spaces is divided into eight spaces, and a refresh pulse can be output from the REFRQ pin while a specified memory space is accessed. Therefore, the normal memory access is not kept to wait by the refresh cycle. * Power-down self-refresh: The low level is output to the REFRQ pin in the standby mode to retain the contents of the pseudo static RAM.
9.5
Bus Hold Function
A bus hold function is provided to facilitate connection of a DMA controller. When a bus hold request signal (HLDRQ) is received from an external bus master, the address bus, address/data bus, and ASTB, RD, and WR pins go into a high-impedance state when the current bus cycle has been completed. This makes the bus hold acknowledge (HLDAK) signal active, and releases the bus to the external bus master. Note that, while the bus hold function is used, the external wait function and pseudo static RAM refresh function cannot be used.
54
PD784035Y, 784036Y, 784037Y, 784038Y
10. STANDBY FUNCTION
This function is to reduce the power dissipation of the chip, and can be used in the following modes: * * HALT mode: Stops supply of the operating clock to the CPU. This mode is used in combination with the normal operation mode for intermittent operation to reduce the average power dissipation. IDLE mode: Stops the entire system with the oscillation circuit continuing operation. The power dissipation in this mode is close to that in the STOP mode. However, the time required to restore the normal program operation from this mode is almost the same as that from the HALT mode. * STOP mode: Stops the oscillator and thereby to stop all the internal operations of the chip. Consequently, the power dissipation is minimized with only leakage current flowing. These modes are programmable. The macro service can be started from the HALT mode. Figure 10-1. Transition of Standby Status
on bilizati Program tion sta Oscilla e expires operation Waits for tim oscillation stabilization
1 te No
Macro service request End of one processing End of macro service
Macro service
N t es qu re put e pt in od ru er SET T m Int RE HAL ts Se
e
1
I,
IN
TP
de mo ut ST T inp ts Se ESE R OP
NM
STOP (standby)
IDLE (standby)
NM
Interrupt request of masked interrupt
HALT (standby)
Notes 1. When INTP4 and INTP5 are not masked 2. Only interrupt requests that are not masked Remark Only the externally input NMI is valid. The watchdog timer cannot be used to release the standby mode (STOP/IDLE mode).
M a En cro s d of erv on ice e pr req oc u es est sin g
Se ts RE IDL IN TP SE E m o 4, T IN inp de TP u t 5 inp ut N
IN
TP
5
inp
ut
ot
ot
4,
e2
I,
55
PD784035Y, 784036Y, 784037Y, 784038Y
11. RESET FUNCTION
When the low level is input to the RESET pin, the internal hardware is initialized (reset status). When the RESET pin goes high, the following data are set to the program counter (PC). * Lower 8 bits of PC: contents of address 0000H * Middle 8 bits of PC: contents of address 0001H * Higher 4 bits of PC: 0 Program execution is started from a branch destination address which is the contents of the PC. Therefore, the system can be reset and started from any address. Set the contents of each register by program as necessary. The RESET input circuit has a noise reduction circuit to prevent malfunctioning due to noise. This noise reduction circuit is a sampling circuit by analog delay. Figure 11-1. Accepting RESET Signal
Delay Delay Delay Initialize PC Executes instruction at reset start address
RESET (input)
Internal reset signal
Reset starts
Reset ends
Assert the RESET signal active until the oscillation stabilization time (approx. 40 ms) elapses to execute a powerON reset operation. Figure 11-2. Power-ON Reset Operation
Executes instruction at reset start address
Oscillation stabilization time
Delay
Initialize PC
VDD
RESET (input)
Internal reset signal
Reset ends
56
PD784035Y, 784036Y, 784037Y, 784038Y
12. INSTRUCTION SET
(1) 8-bit instructions (The instructions in parentheses are combinations realized by describing A as r) MOV, XCH, ADD, ADDC, SU B, SUBC, AND, OR, XOR, CMP, MULU, DIVUW, INC, DEC, ROR, ROL, RORC, ROLC, SHR, SHL, ROR4, DBNZ, PUSH, POP, MOVM, XCHM, CMPME, CMPMNE, CMPMNC, CMPMC, MOVBK, XCHBK, CMPBKE, CMPBKNE, CMPBKNC, CMPBKC, CHIKL, CHKLA Table 12-1. Instruction List by 8-Bit Addressing
Second Operand #byte A r r' First Operand A (MOV) ADD
Note 1
saddr saddr'
sfr
!addr16 !!addr24
mem [saddrp] [%saddrg]
r3 PSWL PSWH MOV
[WHL+] [WHL-]
n
None Note 2
(MOV) (XCH)
MOV XCH
(MOV)Note 6 (XCH)Note 6
MOV (XCH)
(MOV) (XCH)
MOV XCH
(MOV) (XCH) (ADD)Note 1 RORNote 3 MULU DIVUW INC DEC
(ADD)Note 1 (ADD)Note 1 (ADD)Note 1,6 (ADD)Note 1 ADDNote 1 ADDNote 1 r MOV ADD
Note 1
(MOV) (XCH)
MOV XCH
MOV XCH
MOV XCH
MOV XCH
(ADD)Note 1 ADDNote 1 ADDNote 1 ADDNote 1
saddr
MOV ADDNote 1
(MOV)Note 6
MOV
MOV XCH ADDNote 1
INC DEC DBNZ PUSH POP CHKL CHKLA
(ADD)Note 1 ADDNote 1
sfr
MOV
MOV
MOV
ADDNote 1 (ADD)Note 1 ADDNote 1
!addr16 !!addr24 mem [saddrp] [%saddrg] mem3
MOV
(MOV) ADDNote 1 MOV ADDNote 1
MOV
ROR4 ROL4
r3 PSWL PSWH B, C STBC, WDM [TDE+] [TDE-]
MOV
MOV
DBNZ MOV (MOV) (ADD)
Note 1
MOVBKNote 5
MOVMNote 4
Notes 1. The operands of ADDC, SUB, SUBC, AND, OR, XOR, and CMP are the same as that of ADD. 2. Either the second operand is not used, or the second operand is not an operand address. 3. The operands of ROL, RORC, ROLC, SHR, and SHL are the same as that of ROR. 4. The operands of XCHM, CMPME, CMPMNE, CMPMNC, and CMPMC are the same as that of MOVM. 5. The operands of XCHBK, CMPBKE, CMPBKNE, CMPBKNC, and CMPBKC are the same as that of MOVBK. 6. The code length of some instructions having saddr2 as saddr in this combination is short.
57
PD784035Y, 784036Y, 784037Y, 784038Y
(2) 16-bit instructions (The instructions in parentheses are combinations realized by describing AX as rp) MOVW, XCHW, ADDW, SUBW, CMPW, MULUW, MULW, DIVUX, INCW, DECW, SHRW, SHLW, PUSH, POP, ADDWG, SUBWG, PUSHU, POPU, MOVTBLW, MACW, MACSW, SACW Table 12-2. Instruction List by 16-Bit Addressing
Second Operand #word AX rp rp' First Operand AX (MOVW) ADDW
Note 1
saddrp saddrp'
sfrp
!addr16 !!addr24
mem [saddrp] [%saddrg]
[WHL+]
byte
n
NoneNote 2
(MOVW) (XCHW)
(MOVW) (MOVW) (XCHW) (XCHW)
Note 3
MOVW (XCHW)
(MOVW) XCHW
MOVW XCHW
(MOVW) (XCHW)
Note 3
(ADD)Note 1 (ADDW)Note 1 (ADDW)Note 1,3 (ADDW)Note 1 rp MOVW ADDW
Note 1
(MOVW) (XCHW) (ADDW)
Note 1
MOVW XCHW ADDW
Note 1
MOVW XCHW ADDW
Note 1
MOVW XCHW ADDW
Note 1
MOVW
SHRW SHLW
MULWNote 4 INCW DECW INCW DECW
saddrp
MOVW ADDWNote 1
(MOVW)Note 3 (ADDW)Note 1
MOVW ADDWNote 1
MOVW XCHW ADDWNote 1
sfrp
MOVW
MOVW
MOVW
PUSH POP MOVTBLW
ADDWNote 1 (ADDW)Note 1 ADDWNote 1 !addr16 !!addr24 mem [saddrp] [%saddrg] PSW MOVW MOVW (MOVW) MOVW
PUSH POP
SP
ADDWG SUBWG
post
PUSH POP PUSHU POPU
[TDE+] byte
(MOVW)
SACW MACW MACSW
Notes 1. The operands of SUBW and CMPW are the same as that of ADDW. 2. Either the second operand is not used, or the second operand is not an operand address. 3. The code length of some instructions having saddrp2 as saddrp in this combination is short. 4. The operands of MULUW and DIVUX are the same as that of MULW.
58
PD784035Y, 784036Y, 784037Y, 784038Y
(3) 24-bit instructions (The instructions in parentheses are combinations realized by describing WHL as rg) MOVG, ADDG, SUBG, INCG, DECG, PUSH, POP Table 12-3. Instruction List by 24-Bit Addressing
Second Operand #imm24 WHL rg rg' First Operand WHL (MOVG) (ADDG) (SUBG) rg MOVG ADDG SUBG (MOVG) (ADDG) (SUBG) (MOVG) (ADDG) (SUBG) (MOVG) (ADDG) (SUBG) MOVG ADDG SUBG (MOVG) ADDG SUBG MOVG MOVG INCG DECG PUSH POP saddrg !!addr24 mem1 [%saddrg] SP MOVG (MOVG) (MOVG) MOVG MOVG MOVG INCG DECG MOVG MOVG (MOVG) MOVG MOVG MOVG saddrg !!addr24 mem1 [%saddrg] SP NoneNote
Note
Either the second operand is not used, or the second operand is not an operand address.
59
PD784035Y, 784036Y, 784037Y, 784038Y
(4) Bit manipulation instructions MOV1, AND1, OR1, XOR1, SET1, CLR1, NOT1, BT, BF, BTCLR, BFSET Table 12-4. Bit Manipulation Instructions
Second Operand CY saddr.bit sfr.bit A.bit X.bit PSWL.bit PSWH.bit mem2.bit First Operand CY !addr16.bit !!addr24.bit MOV1 AND1 OR1 XOR1 saddr.bit sfr.bit A.bit X.bit PSWL.bit PSWH.bit mem2.bit !addr16.bit !!addr24.bit MOV1 NOT1 SET1 CLR1 BF BT BTCLR BFSET /saddr.bit /sfr. bit /A.bit /X.bit /PSWL.bit /PSWH.bit /mem2.bit /!addr16.bit /!!addr24.bit AND1 OR1 NOT1 SET1 CLR1 NoneNote
Note
Either the second operand is not used, or the second operand is not an operand address.
60
PD784035Y, 784036Y, 784037Y, 784038Y
(5) Call and return/branch instructions CALL, CALLF, CALLT, BRK, RET, RETI, RETB, RETCS, RETCSB, BRKCS, BR, BNZ, BNE, BZ, BE, BNC, BNL, BC, BL, BNV, BPO, BV, BPE, BP, BN, BLT, BGE, BLE, BGT, BNH, BH, BF, BT, BTCLR, BFSET, DBNZ Table 12-5. Call and Return/Branch Instructions
Operand of Instruction Address Basic instruction BCNote BR CALL BR CALL BR RETCS RETCSB Compound instruction BF BT BTCLR BFSET DBNZ CALL BR CALL BR CALL BR CALL BR CALL BR CALLF CALLF BRKCS BRK RET RETI RETB $addr20 $!addr20 !addr16 !!addr20 rp rg [rp] [rg] !addr11 [addr5] RBn None
Note
The operands of BNZ, BNE, BZ, BE, BNC, BNL, BL, BNV, BPO, BV, BPE, BP, BN, BLT, BGE, BLE, BGT, BNH, and BH are the same as BC.
(6) Other instructions ADJBA, ADJBS, CVTBW, LOCATION, SEL, NOT, EI, DI, SWRS
61
PD784035Y, 784036Y, 784037Y, 784038Y
13. ELECTRICAL SPECIFICATIONS
ABSOLUTE MAXIMUM RATINGS (TA = 25C)
Parameter Supply voltage Symbol VDD AVDD AVSS Input voltage Output voltage Low-level output current High-level output current A/D converter reference input voltage D/A converter reference input voltage Operating ambient temperature Storage temperature VI VO IOL Per pin Total of all output pins IOH Per pin Total of all output pins AVREF1 AVREF2 AVREF3 TA Tstg Conditions Ratings -0.5 to +7.0 AVSS to VDD+0.5 -0.5 to +0.5 -0.5 to VDD+0.5 -0.5 to VDD+0.5 15 100 -10 -100 -0.5 to VDD+0.3 -0.5 to VDD+0.3 -0.5 to VDD+0.3 -40 to +85 -65 to +150 Unit V V V V V mA mA mA mA V V V C C
Caution Absolute maximum ratings are rated values beyond which physical damage will be caused to the product; if the rated value of any of the parameters in the above table is exceeded, even momentarily, the quality of the product may deteriorate. Always use the product within its rated values.
62
PD784035Y, 784036Y, 784037Y, 784038Y
OPERATING CONDITIONS * Operating ambient temperature (TA) : -40 to +85C * Rising time and falling time (tr, tf) (at pins which are not specified) : 0 to 200 s * Power supply voltage and clock cycle time : See Figure 13-1
Figure 13-1. Power Supply Voltage and Clock Cycle Time
10000 4000
Clock Cycle Time tCYK [ns]
1000 Guaranteed Operating Range 125 100 62.5
10
0
1
2 3 4 5 Power Supply Voltage [V]
6
7
CAPACITANCE (TA = 25C, VDD = VSS = 0 V)
Parameter Input capacitance Output capacitance I/O capacitance Symbol CI CO CIO f = 1 MHz Unmeasured pins returned to 0 V. Conditions MIN. TYP. 10 MAX. pF 10 10 pF pF Unit
63
PD784035Y, 784036Y, 784037Y, 784038Y
OSCILLATOR CHARACTERISTICS (TA = -40 to +85C, VDD = +4.5 to 5.5 V, VSS = 0 V)
Resonator Ceramic resonator or crystal resonator VSS1 X1 X2 Recommended Circuit Parameter Oscillator frequency (fXX) MIN. 4 MAX. 32 Unit MHz
C1
C2
External clock
X1 input frequency (fX)
4
32
MHz
X1
X2
X1 input rising/falling time (tXR, tXF)
0
10
ns
HCMOS inverter
X1 input high-/low-level width (tWXH, tWXL)
10
125
ns
Caution When using the system clock oscillator, wiring the area enclosed with the broken line should be carried out as follows to avoid an adverse effect from wiring capacitance. * Wiring should be as short as possible. * Wiring should not cross other signal lines. * Wiring should not be placed close to a varying high current. * The potential of the oscillator capacitor ground should be the same as VSS1. Do not ground wiring to a ground pattern in which a high current flows. * Do not fetch a signal from the oscillator.
64
PD784035Y, 784036Y, 784037Y, 784038Y
OSCILLATOR CHARACTERISTICS (TA = -40 to +85C, VDD = +2.7 to 5.5 V, VSS = 0 V)
Resonator Ceramic resonator or crystal resonator VSS1 X1 X2 Recommended Circuit Parameter Oscillator frequency (fXX) MIN. 4 MAX. 16 Unit MHz
C1
C2
External clock
X1 input frequency (fX)
4
16
MHz
X1
X2
X1 input rising/falling time (tXR, tXF)
0
10
ns
HCMOS inverter
X1 input high-/low-level width (tWXH, tWXL)
10
125
ns
Caution When using the system clock oscillator, wiring the area enclosed with the broken line should be carried out as follows to avoid an adverse effect from wiring capacitance. * Wiring should be as short as possible. * Wiring should not cross other signal lines. * Wiring should not be placed close to a varying high current. * The potential of the oscillator capacitor ground should be the same as VSS1. Do not ground wiring to a ground pattern in which a high current flows. * Do not fetch a signal from the oscillator.
65
PD784035Y, 784036Y, 784037Y, 784038Y
DC CHARACTERISTICS (TA = -40 to +85C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V) (1/2)
Parameter Low-level input voltage Symbol VIL1 VIL2 VIL3 High-level input voltage VIH1 VIH2 VIH3 Low-level output voltage VOL1 VOL2 Conditions For pins other than those described in Notes 1, 2, 3, 4, and 6 For pins described in Notes 1, 2, 3, 4, and 6 VDD = +5.0 V10% For pins described in Notes 2, 3, and 4 For pins other than those described in Notes 1 and 6 For pins described in Notes 1 and 6 VDD = +5.0 V10% For pins described in Notes 2, 3, and 4 IOL = 2 mA For pins other than those described in Note 6 IOL = 3 mA For pins described in Note 6 IOL = 6 mA For pins described in Note 6 VOL3 VDD = +5.0 V10% IOL = 8 mA For pins described in Notes 2 and 5 IOH = -2 mA VDD = +5.0 V10% IOH = -5 mA For pins other than those described in Note 4 EXTC = 0 0 V VI VIL2 EXTC = 0 VIH2 VI VDD VDD-1.0 VDD-1.4 MIN. -0.3 -0.3 -0.3 0.7VDD 0.8VDD 2.2 TYP. MAX. 0.3VDD 0.2VDD +0.8 VDD+0.3 VDD+0.3 VDD+0.3 0.4 0.4 0.6 1.0 Unit V V V V V V V V V V
High-level output voltage
VOH1 VOH2
V V
X1 low-level input current X1 high-level input current
IIL IIH
-30 +30
A A
Notes 1. X1, X2, RESET, P12/ASCK2/SCK2, P20/NMI, P21/INTP0, P22/INTP1, P23/INTP2/CI, P24/INTP3, P25/INTP4/ASCK/SCK1, P26/INTP5, P27/SI0, and TEST 2. P40/AD0 to P47/AD7 and P50/A8 to P57/A15 3. P60/A16 to P63/A19, P64/RD, P65/WR, P66/WAIT/HLDRQ, and P67/REFRQ/HLDAK 4. P00 to P07 5. P10 to P17 6. P32/SCK0/SCL and P33/SO0/SDA
66
PD784035Y, 784036Y, 784037Y, 784038Y
DC CHARACTERISTICS (TA = -40 to +85C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V) (2/2)
Parameter Input leakage current Output leakage current VDD supply current Symbol ILI ILO IDD1 Conditions 0 V VI VDD For pins other than pin X1 when EXTC = 0 0 V VO VDD Operation mode fXX = 32 MHz VDD = +5.0 V10% fXX = 16 MHz VDD = +2.7 to 3.3 V IDD2 HALT mode fXX = 32 MHz VDD = +5.0 V10% fXX = 16 MHz VDD = +2.7 to 3.3 V IDD3 IDLE mode (EXTC = 0) fXX = 32 MHz VDD = +5.0 V10% fXX = 16 MHz VDD = +2.7 to 3.3 V Pull-up resistance RL VI = 0 V 15 25 12 13 8 MIN. TYP. MAX. 10 10 45 25 26 12 12 8 80 Unit
A A
mA mA mA mA mA mA k
67
PD784035Y, 784036Y, 784037Y, 784038Y
AC CHARACTERISTICS (TA = -40 to +85C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V) (1) Read/write operation (1/2)
Parameter Address setup time Symbol tSAST Conditions VDD = +5.0 V10% MIN. (0.5+a)T-15 (0.5+a)T-31 ASTB high-level width tWSTH VDD = +5.0 V10% (0.5+a)T-17 (0.5+a)T-40 Address hold time (from ASTB) Address hold time (from RD) RD delay time from address Address float time (from RD) Data input time from address Data input time from ASTB Data input time from RD RD delay time from ASTB Data hold time (from RD) Address active time from RD tHRID tDRA After program is read VDD = +5.0 V10% 0 0.5T-8 0.5T-12 After data is read VDD = +5.0 V10% 1.5T-8 1.5T-12 ASTB delay time from RD RD low-level width tDRST tWRL VDD = +5.0 V10% 0.5T-17 (1.5+n)T-30 (1.5+n)T-40 Address hold time (from WR) WR delay time from address Data output delay time from ASTB Data output delay time from WR WR output delay time from ASTB tHWA tDAW VDD = +5.0 V10% 0.5T-14 (1+a)T-5 (1+a)T-15 tDSTOD VDD = +5.0 V10% 0.5T+19 0.5T+35 tDWOD tDSTW 0.5T-9 0.5T-11 ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns tHSTLA VDD = +5.0 V10% 0.5T-24 0.5T-34 tHRA tDAR VDD = +5.0 V10% 0.5T-14 (1+a)T-9 (1+a)T-15 tFRA tDAID VDD = +5.0 V10% 0 (2.5+a+n)T-37 (2.5+a+n)T-52 tDSTID VDD = +5.0 V10% (2+n)T-40 (2+n)T-60 tDRID VDD = +5.0 V10% (1.5+n)T-50 (1.5+n)T-70 tDSTR 0.5T-9 MAX. Unit ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns
Remark T : TCYK (system clock cycle time) a : 1 (during address wait), otherwise, 0 n : Number of wait states (n 0)
68
PD784035Y, 784036Y, 784037Y, 784038Y
(1) Read/write operation (2/2)
Parameter Symbol Conditions VDD = +5.0 V10% MIN. (1.5+n)T-30 (1.5+n)T-40 Data hold time (from WR) Note ASTB delay time (from WR) WR low-level width tDWST tWWL VDD = +5.0 V10% tHWOD VDD = +5.0 V10% 0.5T-5 0.5T-25 0.5T-12 (1.5+n)T-30 (1.5+n)T-40 MAX. Unit ns ns ns ns ns ns ns
Data setup time (to WR) tSODW
Note
The hold time includes the time during which VOH1 and VOL1 are held under the load conditions of CL = 50 pF and RL = 4.7 k.
Remark T: TCYK (system clock cycle time) n: Number of wait states (n 0) (2) Bus hold timing
Parameter Float delay time from HLDRQ HLDAK delay time from HLDRQ HLDAK delay time from float HLDAK delay time from HLDRQ Active delay time from HLDAK tDHQLHAL VDD = +5.0 V10% 2T+40 2T+60 tDHAC VDD = +5.0 V10% 1T-20 1T-30 ns ns ns ns tDHQHHAH VDD = +5.0 V10% (7+a+n)T+30 (7+a+n)T+40 tDCFHA 1T+30 ns ns ns Symbol tFHQC Conditions MIN. MAX. (6+a+n)T+50 Unit ns
Remark T: TCYK (system clock cycle time) a: 1 (during address wait), otherwise, 0 n: Number of wait states (n 0)
69
PD784035Y, 784036Y, 784037Y, 784038Y
(3) External wait timing
Parameter WAIT input time from address WAIT input time from ASTB WAIT hold time from ASTB WAIT delay time from ASTB WAIT input time from RD WAIT hold time from RD WAIT delay time from RD Data input time from WAIT WR delay time from WAIT RD delay time from WAIT WAIT input time from WR WAIT hold time from WR WAIT delay time from WR Symbol tDAWT tDSTWT tHSTWTH tDSTWTH tDRWTL tHRWT tDRWTH tDWTID tDWTW tDWTR tDWWTL tHWWT tDWWTH VDD = +5.0 V10% VDD = +5.0 V10% VDD = +5.0 V10% nT+5 nT+10 (1+n)T-40 (1+n)T-70 Conditions VDD = +5.0 V10% VDD = +5.0 V10% VDD = +5.0 V10% VDD = +5.0 V10% VDD = +5.0 V10% VDD = +5.0 V10% VDD = +5.0 V10% VDD = +5.0 V10% 0.5T 0.5T T-5 T-75 nT+5 nT+10 (1+n)T-40 (1+n)T-60 0.5T-5 0.5T-10 (0.5+n)T+5 (0.5+n)T+10 (1.5+n)T-40 (1.5+n)T-60 T-50 T-70 MIN. MAX. (2+a)T-40 (2+a)T-60 1.5T-40 1.5T-60 Unit ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns
Remark T: TCYK (system clock cycle time) a: 1 (during address wait), otherwise, 0 n: Number of wait states (n 0) (4) Refresh timing
Parameter Random read/write cycle time REFRQ low-level pulse width Symbol tRC tWRFQL VDD = +5.0 V10% Conditions MIN. 3T 1.5T-25 1.5T-30 0.5T-9 1.5T-9 1.5T-9 0.5T-15 VDD = +5.0 V10% 1.5T-25 1.5T-30 MAX. Unit ns ns ns ns ns ns ns ns ns
REFRQ delay time from tDSTRFQ ASTB REFRQ delay time from tDRRFQ RD REFRQ delay time from tDWRFQ WR ASTB delay time from REFRQ tDRFQST
REFRQ high-level pulse tWRFQH width
Remark T: TCYK (system clock cycle time)
70
PD784035Y, 784036Y, 784037Y, 784038Y
SERIAL OPERATION (TA = -40 to +85C, VDD = +2.7 to 5.5 V, AVSS = VSS = 0 V) (1) CSI
Parameter Serial clock cycle time (SCK0) Symbol tCYSK0 Input Output Serial clock low-level width (SCK0) tWSKL0 Input Output Serial clock high-level width (SCK0) tWSKH0 Input Output SI0 setup time (to SCK0) SI0 hold time (from SCK0) SO0 output delay time (from SCK0) tHSSK0 tDSBSK1 tDSBSK2 CMOS push-pull output (3-wire serial I/O mode) Open-drain output (2-wire serial I/O mode), RL = 1 k 5/fXX+40 0 0 5/fXX+150 5/fXX+400 ns ns ns tSSSK0 External clock When SCK0 and SO0 are CMOS I/O External clock When SCK0 and SO0 are CMOS I/O Conditions External clock When SCK0 and SO0 are CMOS I/O MIN. 10/fXX+380 T 5/fXX+150 0.5T-40 5/fXX+150 0.5T-40 40 MAX. Unit ns
s
ns
s
ns
s
ns
Remarks 1. The values in this table are those when CL is 100 pF. 2. T: Serial clock cycle set by software. The minimum value is 16/fXX. 3. fXX: Oscillation frequency (2) I2C
Parameter Symbol Standard mode I2C bus fXX = 4 to 32 MHz MIN. SCL clock frequency Hold time of SCL clock low-level state Hold time of SCL clock high-level state Data hold time Data setup time Rising time of SDA and SCL signals Falling time of SDA and SCL signals Load capacitance of each bus line fSCL tLOW tHIGH tHD; DAT tSU; DAT tR tF Cb 0 4.7 4.0 300 250 1000 300 400 MAX. 100 High-speed mode I2C bus fXX = 8 to 32 MHz MIN. 0 1.3 0.6 300 100 20+0.1Cb 20+0.1Cb 300 300 400 900 MAX. 400 kHz Unit
s s
ns ns ns ns pF
71
PD784035Y, 784036Y, 784037Y, 784038Y
(3) IOE1, IOE2
Parameter Serial clock cycle time (SCK1, SCK2) Symbol tCYSK1 Input Conditions VDD = +5.0 V10% MIN. 250 500 T 85 210 0.5T-40 85 210 0.5T-40 40 40 0 During data transfer 0.5tCYSK1-40 50 MAX. Unit ns ns ns ns ns ns ns ns ns ns ns ns ns
Output Serial clock low-level width (SCK1, SCK2) tWSKL1 Input
Internal clock divided by 16 VDD = +5.0 V10%
Output Serial clock high-level width (SCK1, SCK2) tWSKH1 Input
Internal clock divided by 16 VDD = +5.0 V10%
Output SI1, SI2 setup time (to SCK1, SCK2) SI1, SI2 hold time (from SCK1, SCK2) SO1, SO2 output delay time (from SCK1, SCK2) SO1, SO2 output hold time (from SCK1, SCK2 ) tSSSK1 tHSSK1 tDSOSK tHSOSK
Internal clock divided by 16
Remarks 1. The values in this table are those when CL is 100 pF. 2. T: Serial clock cycle set by software. The minimum value is 16/fXX. (4) UART, UART2
Parameter ASCK clock input cycle time ASCK clock low-level width ASCK clock high-level width Symbol tCYASK Conditions VDD = +5.0 V10% MIN. 125 250 tWASKL VDD = +5.0 V10% 52.5 85 tWASKH VDD = +5.0 V10% 52.5 85 MAX. Unit ns ns ns ns ns ns
72
PD784035Y, 784036Y, 784037Y, 784038Y
CLOCK OUTPUT OPERATION
Parameter CLKOUT cycle time CLKOUT low-level width Symbol tCYCL tCLL VDD = +5.0 V10% Conditions MIN. nT 0.5tCYCL-10 0.5tCYCL-20 CLKOUT high-level width tCLH VDD = +5.0 V10% 0.5tCYCL-10 0.5tCYCL-20 CLKOUT rising time tCLR VDD = +5.0 V10% 10 20 CLKOUT falling time tCLF VDD = +5.0 V10% 10 20 MAX. Unit ns ns ns ns ns ns ns ns ns
Remark n: Divided frequency ratio set by software in the CPU (n = 1, 2, 4, 8, 16) T: tCYK (system clock cycle time) OTHER OPERATIONS
Parameter NMI low-level width NMI high-level width INTP0 low-level width INTP0 high-level width INTP1 to INTP3, CI low-level width INTP1 to INTP3, CI high-level width INTP4, INTP5 low-level width Symbol tWNIL tWNIH tWIT0L tWIT0H tWIT1L tWIT1H tWIT2L Conditions MIN. 10 10 3tCYSMP+10 3tCYSMP+10 3tCYCPU+10 3tCYCPU+10 10 10 10 10 MAX. Unit
s s
ns ns ns ns
s s s s
INTP4, INTP5 high-level tWIT2H width RESET low-level width RESET high-level width tWRSL tWRSH
Remark tCYSMP: Sampling clock set by software tCYCPU: CPU operation clock set by software in the CPU
73
PD784035Y, 784036Y, 784037Y, 784038Y
A/D CONVERTER CHARACTERISTICS (TA = -40 to +85C, VDD = AVDD = AVREF1 = +2.7 to 5.5 V, VSS = AVSS = 0 V)
Parameter Resolution Total error
Note Note
Symbol
Conditions
MIN. 8
TYP.
MAX.
Unit bit
1.0 0.8 1/2 tCONV FR = 1 FR = 0 120 180 24 36 -0.3 1000 0.5 fXX = 32 MHz, CS = 1 STOP mode, CS = 0 2.0 1.0 1.5 5.0 20 AVREF1+0.3
% % LSB tCYK tCYK tCYK tCYK V M mA mA
Linearity calibration Quantization error Conversion time
Sampling time
tSAMP
FR = 1 FR = 0
Analog input voltage Analog input impedance AVREF1 current AVDD supply current
VIAN RAN AIREF1 AIDD1 AIDD2
A
Note
Quantization error is not included. This parameter is indicated as the ratio to the full-scale value.
Remark tCYK: System clock cycle time
74
PD784035Y, 784036Y, 784037Y, 784038Y
D/A CONVERTER CHARACTERISTICS (TA = -40 to +85C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V)
Parameter Resolution Total error Load conditions: 4 M, 30 pF VDD = AVDD = AVREF2 = +2.7 to 5.5 V AVREF3 = 0 V VDD = AVDD = +2.7 to 5.5 V AVREF2 = 0.75VDD AVREF3 = 0.25VDD Load conditions: 2 M, 30 pF VDD = AVDD = AVREF2 = +2.7 to 5.5 V AVREF3 = 0 V VDD = AVDD = +2.7 to 5.5 V AVREF2 = 0.75VDD AVREF3 = 0.25VDD Settling time Output resistance Analog reference voltage RO AVREF2 AVREF3 AVREF2, AVREF3 resistance RAIREF Reference power supply input current AIREF2 AIREF3 DACS0, 1 = 55 H Load conditions: 2 M, 30 pF DACS0, 1 = 55 H 0.75VDD 0 4 0 -5 8 5 0 10 VDD 0.25VDD Symbol Conditions MIN. 8 0.6 TYP. MAX. Unit bit %
0.8
%
0.8
%
1.0
%
10
s
k V V k mA mA
75
PD784035Y, 784036Y, 784037Y, 784038Y
DATA RETENTION CHARACTERISTICS (TA = -40 to +85C)
Parameter Data retention voltage Data retention current Symbol VDDDR IDDDR STOP mode VDDDR = +2.7 to 5.5 V VDDDR = +2.5 V VDD rising time VDD falling time tRVD tFVD 200 200 0 0 Crystal resonator Ceramic resonator VIL VIH Specific pins
Note
Conditions
MIN. 2.5
TYP.
MAX. 5.5
Unit V
10 2
50 10
A A s s
ms ms ms ms
VDD hold time tHVD (from STOP mode setting) STOP release signal input time Oscillation stabilization wait time Low-level input voltage High-level input voltage tDREL tWAIT
30 5 0 0.9VDDDR 0.1VDDDR VDDDR
V V
Note
RESET, P20/NMI, P21/INTP0, P22/INTP1, P23/INTP2/CI, P24/INTP3, P25/INTP4/ASCK/SCK1, P26/ INTP5, P27/SI0, P32/SCK0/SCL, and P33/SO0/SDA pins
AC TIMING TEST POINTS
VDD - 1 V
0.8VDD or 2.2 V Test Points 0.8 V
0.8VDD or 2.2 V 0.8 V
0.45 V
76
PD784035Y, 784036Y, 784037Y, 784038Y
TIMING WAVEFORM (1) Read operation
tWSTH ASTB tSAST tHSTLA A8 to A19 tDSTID tDRST
tDAID AD0 to AD7 tDSTR tDAR RD tWRL tFRA tDRID
tHRA
tHRID tDRA
(2) Write operation
tWSTH ASTB tSAST tHSTLA A8 to A19 tDSTOD tDWST
tHWA AD0 to AD7 tDSTW tDAW WR tWWL tDWOD tSODW tHWOD
77
PD784035Y, 784036Y, 784037Y, 784038Y
HOLD TIMING
ADTB, A8 to A19, AD0 to AD7, RD, WR tFHQC HLDRQ tDHQHHAH HLDAK tDHQLHAL tDCFHA tDHAC
EXTERNAL WAIT SIGNAL INPUT TIMING (1) Read operation
ASTB tDSTWTH tHSTWTH
tDSTWT A8 to A19
AD0 to AD7 tDAWT RD tDRWTL WAIT tHRWT tDRWTH tDWTR tDWTID
(2) Write operation
ASTB tDSTWTH tHSTWTH
tDSTWT A8 to A19
AD0 to AD7 tDAWT WR tDWWTL WAIT tHWWT tDWWTH tDWTW
78
PD784035Y, 784036Y, 784037Y, 784038Y
REFRESH TIMING WAVEFORM (1) Random read/write cycle
tRC ASTB
WR tRC RD tRC tRC tRC
(2) When refresh memory is accessed for read and write at the same time
ASTB
RD, WR tDSTRFQ tDRFQST tWRFQH
REFRQ tWRFQL
(3) Refresh after read
ASTB tDRFQST RD tDRRFQ REFRQ tWRFQL
(4) Refresh after write
ASTB tDRFQST WR tDWRFQ REFRQ tWRFQL
79
PD784035Y, 784036Y, 784037Y, 784038Y
SERIAL OPERATION (1) CSI
tWSKL0 SCK tCYSK0 SI tDSBSK1 SO tHSBSK1 tSSSK0 tHSSK0 Input data tWSKH0
Output data
(2) I2C
tR SCL tF tHIGH tLOW
SDA tHD; DAT tSU; DAT
(3) IOE1, IOE2
tWSKL1 SCK tCYSK1 SI tDSOSK SO tHSOSK tSSSK1 tHSSK1 tWSKH1
Input data
Output data
(4) UART, UART2
tWASKH tWASKL
ASCK, ASCK2 tCYASK
80
PD784035Y, 784036Y, 784037Y, 784038Y
CLOCK OUTPUT TIMING
tCLH
tCLL
CLKOUT tCLR tCYCL tCLF
INTERRUPT INPUT TIMING
tWNIH tWNIL
NMI
tWIT0H
tWIT0L
INTP0
tWIT1H
tWIT1L
CI, INTP1 to INTP3
tWIT2H
tWIT2L
INTP4, INTP5
RESET INPUT TIMING
tWRSH tWRSL
RESET
81
PD784035Y, 784036Y, 784037Y, 784038Y
EXTERNAL CLOCK TIMING
tWXH
tWXL
X1 tXR tCYX tXF
DATA RETENTION CHARACTERISTICS
STOP mode setting
VDD tHVD tFVD
VDDDR tRVD tDREL tWAIT
RESET
NMI (Clearing by falling edge)
NMI (Clearing by rising edge)
82
PD784035Y, 784036Y, 784037Y, 784038Y
14. PACKAGE DRAWINGS
80 PIN PLASTIC QFP (14x14)
A B
60 61
41 40
detail of lead end
CD
S Q R
80 1
21 20
F G H P I
M
J K M N L
NOTE Each lead centerline is located within 0.13 mm (0.005 inch) of its true position (T.P.) at maximum material condition.
ITEM A B C D F G H I J K L M N P Q R S
MILLIMETERS 17.20.4 14.00.2 14.00.2 17.20.4 0.825 0.825 0.300.10 0.13 0.65 (T.P.) 1.60.2 0.80.2 0.15 +0.10 -0.05 0.10 2.7 0.10.1 55 3.0 MAX.
INCHES 0.6770.016 0.551 +0.009 -0.008 0.551 +0.009 -0.008 0.6770.016 0.032 0.032 0.012 +0.004 -0.005 0.005 0.026 (T.P.) 0.0630.008 0.031 +0.009 -0.008 0.006 +0.004 -0.003 0.004 0.106 0.0040.004 55 0.119 MAX. S80GC-65-3B9-4
Remark The shape and material of the ES version are the same as those of the corresponding mass-produced product.
83
PD784035Y, 784036Y, 784037Y, 784038Y
5
80 PIN PLASTIC QFP (14x14)
A B
60 61
41 40
detail of lead end
C
D
S R Q
80 1
21 20
F G P H I
M
J K M
N
NOTE Each lead centerline is located within 0.13 mm (0.005 inch) of its true position (T.P.) at maximum material condition.
L
ITEM A B C D F G H I J K L M N P Q R S MILLIMETERS 17.200.20 14.000.20 14.000.20 17.200.20 0.825 0.825 0.320.06 0.13 0.65 (T.P.) 1.600.20 0.800.20 0.17 +0.03 -0.07 0.10 1.400.10 0.1250.075 3 +7 -3 1.70 MAX. INCHES 0.6770.008 0.551 +0.009 -0.008 0.551 +0.009 -0.008 0.6770.008 0.032 0.032 0.013 +0.002 -0.003 0.005 0.026 (T.P.) 0.0630.008 0.031 +0.009 -0.008 0.007 +0.001 -0.003 0.004 0.0550.004 0.0050.003 3 +7 -3 0.067 MAX. P80GC-65-8BT
Remark The shape and material of the ES version are the same as those of the corresponding mass-produced product.
84
PD784035Y, 784036Y, 784037Y, 784038Y
80 PIN PLASTIC TQFP (FINE PITCH) (
A B
12)
60 61
41 40
detail of lead end
C
D
S Q
80
21 1 20
F
G
H
I
M
J
K
P
N L
NOTE Each lead centerline is located within 0.10 mm (0.004 inch) of its true position (T.P.) at maximum material condition.
ITEM A B C D F G H I J K L M N P Q R S MILLIMETERS 14.00.2 12.00.2 12.00.2 14.00.2 1.25 1.25 0.22 +0.05 -0.04 0.10 0.5 (T.P.) 1.00.2 0.50.2 0.145 +0.055 -0.045 0.10 1.05 0.050.05 55 1.27 MAX. INCHES 0.551 +0.009 -0.008 0.472 +0.009 -0.008 0.472 +0.009 -0.008 0.551 +0.009 -0.008 0.049 0.049 0.0090.002 0.004 0.020 (T.P.) 0.039 +0.009 -0.008 0.020 +0.008 -0.009 0.0060.002 0.004 0.041 0.0020.002 55 0.050 MAX. P80GK-50-BE9-4
Remark The shape and material of the ES version are the same as those of the corresponding mass-produced product.
M
R
85
PD784035Y, 784036Y, 784037Y, 784038Y
15. RECOMMENDED SOLDERING CONDITIONS
It is recommended that the PD784035Y, 784036Y, 784037Y, and 784038Y be soldered under the following conditions. For details on the recommended soldering conditions, refer to information document "Semiconductor Device Mounting Technology Manual" (C10535E). For soldering methods and conditions other than those recommended, please consult an NEC representative. Caution The soldering conditions for the PD784035YGK-xxx-BE9 and 784036YGK-xxx-BE9 are undefined because these products are currently under development. Table 15-1. Soldering Conditions for Surface Mount Type (1/2) (1) PD784035YGC-xxx-3B9: 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick)
PD784036YGC-xxx-3B9: 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick) PD784037YGC-xxx-3B9: 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick) PD784038YGC-xxx-3B9: 80-pin plastic QFP (14 x 14 mm, 2.7-mm thick)
Soldering Method Infrared ray reflow VPS Wave soldering Soldering Conditions Package peak temperature: 235C, Reflow time: 30 seconds or less (210C or more) Number of reflow processes: 3 or less Package peak temperature: 215C, Reflow time: 40 seconds or less (200C or more) Number of reflow processes: 3 or less Solder bath temperature: 260C or less, Flow time: 10 seconds or less, Number of flow processes: 1, Preheating temperature: 120C max. (package surface temperature) Pin temperature: 300C or less, Flow time: 3 seconds or less (for one side of the a device) Recommended Condition Symbol IR35-00-3 VP15-00-3 WS60-00-1
Partial heating
--
Caution Do not apply two or more different soldering methods to one chip (except for partial heating method). (2) PD784035YGC-xxx-8BT: 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick)
PD784036YGC-xxx-8BT: 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick) PD784037YGC-xxx-8BT: 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick) PD784038YGC-xxx-8BT: 80-pin plastic QFP (14 x 14 mm, 1.4-mm thick)
Soldering Method Infrared ray reflow VPS Wave soldering Soldering Conditions Package peak temperature: 235C, Reflow time: 30 seconds or less (210C or more) Number of reflow processes: 2 or less Package peak temperature: 215C, Reflow time: 40 seconds or less (200C or more) Number of reflow processes: 2 or less Solder bath temperature: 260C or less, Flow time: 10 seconds or less, Number of flow processes: 1, Preheating temperature: 120C max. (package surface temperature) Pin temperature: 300C or less, Flow time: 3 seconds or less (for one side of the a device) Recommended Condition Symbol IR35-00-2 VP15-00-2 WS60-00-1
Partial heating
--
Caution Do not apply two or more different soldering methods to one chip (except for partial heating method).
86
PD784035Y, 784036Y, 784037Y, 784038Y
Table 15-1. Soldering Conditions for Surface Mount Type (2/2) (3) PD784037YGK-xxx-BE9: 80-pin plastic TQFP (fine-pitch) (12 x 12 mm)
PD784038YGK-xxx-BE9: 80-pin plastic TQFP (fine-pitch) (12 x 12 mm)
Soldering Method Infrared ray reflow Soldering Conditions Package peak temperature: 235C, Reflow time: 30 seconds or less (210C or more) Number of reflow processes: 2 or less Exposure limit: 7 daysNote (10 hours of pre-baking is required at 125C afterward) VPS Package peak temperature: 215C, Reflow time: 40 seconds or less (200C or more) Number of reflow processes: 2 or less Exposure limit: 7 daysNote (10 hours of pre-baking is required at 125C afterward) Pin temperature: 300C or less, Flow time: 3 seconds or less (per side of a device) VP15-107-2 Recommended Condition Symbol IR35-107-2
Partial heating
--
Note
Maximum number of days during which the product can be stored at a temperature of 25C and a relative humidity of 65% or less after dry-pack package is opened.
Caution Do not apply two or more different soldering methods to one chip (except for partial heating method).
87
PD784035Y, 784036Y, 784037Y, 784038Y
APPENDIX A DEVELOPMENT TOOLS
The following development tools are available for supporting development of a system using the PD784038Y. Language processor software RA78K4Note 1 CC78K4Note 1 CC78K4-LNote 1 Assembler package common to 78K/IV Series C compiler package common to 78K/IV Series C compiler library source file common to 78K/IV Series
PROM writing tool PG-1500 PA-78P4026GC PA-78P4038GK PA-78P4026KK PG-1500 controllerNote 2 Debugging tool IE-784000-R IE-784000-R-BK IE-784038-R-EM1 IE-784000-R-EM IE-70000-98-IF-B IE-70000-98N-IF IE-70000-PC-IF-B IE-78000-R-SV3 EP-78230GC-R EP-78054GK-R EV-9200GC-80 TGK-080SDW EV-9900 SM78K4Note 3 ID78K4Note 3 DF784038Note 4 Real-time OS RX78K/IVNote 4 MX78K4Note 2 Real-time OS for 78K/IV Series OS for 78K/IV Series Interface adapter when PC-9800 series (except notebook type) is used as host machine Interface adapter and cable when notebook type PC-9800 series is used as host machine Interface adapter when IBM PC/ATTM is used as host machine Interface adapter and cable when EWS is used as host machine Emulation probe for 80-pin plastic QFP (GC-3B9, GC-8BT type) common to PD784038Y Subseries Emulation probe for 80-pin plastic TQFP (fine pitch) (GK-BE9 type) common to In-circuit emulator common to 78K/IV Series Break board common to 78K/IV Series Emulation board for evaluation of PD784038Y Subseries PG-1500 control program PROM program writer Programmer adapter connected to PG-1500
PD784038Y Subseries
Socket mounted on board of target system created for 80-pin plastic QFP (GC-3B9, GC-8BT type) Adapter mounted on board of target system created for 80-pin plastic TQFP (fine pitch) (GK-BE9) Jig used to remove PD78P4038YKK-T from EV-9200GC-80 System simulator common to 78K/IV Series Integrated debugger for IE-784000-R Device file for PD784038Y Subseries
88
PD784035Y, 784036Y, 784037Y, 784038Y
Notes. 1.
* * * * *
PC-9800 series (MS-DOSTM) base IBM PC/AT and compatible machine (PC DOSTM, WindowsTM, MS-DOS, IBM DOSTM) base HP9000 series 700TM (HP-UXTM) base SPARCstation TM (SunOSTM) base NEWSTM (NEWS-OSTM) base PC-9800 series (MS-DOS) base IMB PC/AT and compatible machine (PC DOS, Windows, MS-DOS, IBM DOS) base PC-9800 series (MS-DOS+Windows) base IBM PC/AT and compatible machine (PC DOS, Windows, MS-DOS, IBM DOS) base HP9000 series 700 (HP-UX) base SPARCstation (SunOS) base PC-9800 series (MS-DOS) base IBM PC/AT and compatible machine (PC DOS, Windows, MS-DOS, IBM DOS) base HP9000 series 700 (HP-UX) base SPARCstation (SunOS) base
2. 3.
* * * * * *
4.
* * * *
Remarks 1. RA78K4, CC78K4, SM78K4, and ID78K4 are used in combination with DF784038. 2. The TGK-080SDW is a product of TOKYO ELETECH CORPORATION (Tokyo, 03-5295-1661). Consult an NEC sales representative about purchasing.
89
PD784035Y, 784036Y, 784037Y, 784038Y
APPENDIX B RELATED DOCUMENTS
Documents related to device
Document Name Japanese Document No. English U11504E This manual U10742E U11316J - U10905E - - U10095E
PD784031Y Data Sheet PD784035Y, 784036Y, 784037Y, 784038Y Data Sheet PD78P4038Y Data Sheet
PD784038, 784038Y Subseries User's Manual - Hardware PD784038Y Subseries Special Function Register Table 78K/IV Series User's Manual - Instructions 78K/IV Series Instruction Table 78K/IV Series Instruction Set 78K/IV Series Application Note - Software Basics
U11504J U10741J U10742J U11316J U11091J U10905J U10594J U10595J U10095J
Documents related to development tools (User's Manuals)
Document Name Japanese RA78K4 Assembler Package Operation Language RA78K Series Structured Assembler Preprocessor CC78K4 Series Operation Language CC78K Series Library Source File PG-1500 PROM Programmer PG-1500 Controller - PC-9800 Series (MS-DOS) Based PG-1500 Controller - IBM PC Series (PC DOS) Based IE-784000-R IE-784038-R-EM1 EP-78230 EP-78054GK-R SM78K4 System Simulator - Windows Based SM78K Series System Simulator Reference External component user open interface specification ID78K4 Integrated Debugger - Windows Based ID78K4 Integrated Debugger HP9000 Series 700 (HP-UX) Based Reference Reference U10440J U11960J U10440E Under preparation U11334J U11162J EEU-817 EEU-960 EEU-961 U12322J U11940J EEU-704 EEU-5008 EEU-5004 U11383J EEU-985 EEU-932 U10093J U10092J Document No. English U11334E -- EEU-1402 -- -- -- EEU-1335 EEU-1291 U10540E EEU-1534 U11383E EEU-1515 EEU-1468 U10093E U10092E
Caution The contents of the above related documents are subject to change without notice. Be sure to use the latest edition of a document for designing.
90
PD784035Y, 784036Y, 784037Y, 784038Y
Documents related to embedded software (User's Manual)
Document Name Japanese 78K/IV Series Real-Time OS Basics Installation Debugger 78K/IV Series OS MX78K4 Basics U10603J U10604J U10364J U11779J Document No. English U10603E U10604E -- --
Other documents
Document Name Japanese IC Package Manual Semiconductor Device Mounting Technology Manual Quality Grades on NEC Semiconductor Devices NEC Semiconductor Device Reliability/Quality Control System Electrostatic Discharge (ESD) Test Guide to Quality Assurance for Semiconductor Devices Guide to Microcontroller-Related Products by Third Parties C10943X C10535J C11531J C10983J MEM-539 C11893J U11416J C10535E C11531E C10983E -- MEI-1202 -- Document No. English
Caution The contents of the above related documents are subject to change without notice. Be sure to use the latest edition of a document for designing.
91
PD784035Y, 784036Y, 784037Y, 784038Y
NOTES FOR CMOS DEVICES
1 PRECAUTION AGAINST ESD FOR SEMICONDUCTORS
Note: Strong electric field, when exposed to a MOS device, can cause destruction of the gate oxide and ultimately degrade the device operation. Steps must be taken to stop generation of static electricity as much as possible, and quickly dissipate it once, when it has occurred. Environmental control must be adequate. When it is dry, humidifier should be used. It is recommended to avoid using insulators that easily build static electricity. Semiconductor devices must be stored and transported in an anti-static container, static shielding bag or conductive material. All test and measurement tools including work bench and floor should be grounded. The operator should be grounded using wrist strap. Semiconductor devices must not be touched with bare hands. Similar precautions need to be taken for PW boards with semiconductor devices on it.
2 HANDLING OF UNUSED INPUT PINS FOR CMOS
Note: No connection for CMOS device inputs can be cause of malfunction. If no connection is provided to the input pins, it is possible that an internal input level may be generated due to noise, etc., hence causing malfunction. CMOS device behave differently than Bipolar or NMOS devices. Input levels of CMOS devices must be fixed high or low by using a pull-up or pull-down circuitry. Each unused pin should be connected to VDD or GND with a resistor, if it is considered to have a possibility of being an output pin. All handling related to the unused pins must be judged device by device and related specifications governing the devices.
3 STATUS BEFORE INITIALIZATION OF MOS DEVICES
Note: Power-on does not necessarily define initial status of MOS device. Production process of MOS does not define the initial operation status of the device. Immediately after the power source is turned ON, the devices with reset function have not yet been initialized. Hence, power-on does not guarantee out-pin levels, I/O settings or contents of registers. Device is not initialized until the reset signal is received. Reset operation must be executed immediately after power-on for devices having reset function.
92
PD784035Y, 784036Y, 784037Y, 784038Y
Regional Information
Some information contained in this document may vary from country to country. Before using any NEC product in your application, please contact the NEC office in your country to obtain a list of authorized representatives and distributors. They will verify: * Device availability * Ordering information * Product release schedule * Availability of related technical literature * Development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, AC supply voltages, and so forth) * Network requirements In addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country.
NEC Electronics Inc. (U.S.)
Santa Clara, California Tel: 800-366-9782 Fax: 800-729-9288
NEC Electronics (Germany) GmbH
Benelux Office Eindhoven, The Netherlands Tel: 040-2445845 Fax: 040-2444580
NEC Electronics Hong Kong Ltd.
Hong Kong Tel: 2886-9318 Fax: 2886-9022/9044
NEC Electronics (Germany) GmbH
Duesseldorf, Germany Tel: 0211-65 03 02 Fax: 0211-65 03 490
NEC Electronics Hong Kong Ltd. NEC Electronics (France) S.A.
Velizy-Villacoublay, France Tel: 01-30-67 58 00 Fax: 01-30-67 58 99 Seoul Branch Seoul, Korea Tel: 02-528-0303 Fax: 02-528-4411
NEC Electronics (UK) Ltd.
Milton Keynes, UK Tel: 01908-691-133 Fax: 01908-670-290
NEC Electronics (France) S.A.
Spain Office Madrid, Spain Tel: 01-504-2787 Fax: 01-504-2860
NEC Electronics Singapore Pte. Ltd.
United Square, Singapore 1130 Tel: 253-8311 Fax: 250-3583
NEC Electronics Italiana s.r.1.
Milano, Italy Tel: 02-66 75 41 Fax: 02-66 75 42 99
NEC Electronics Taiwan Ltd. NEC Electronics (Germany) GmbH
Scandinavia Office Taeby, Sweden Tel: 08-63 80 820 Fax: 08-63 80 388 Taipei, Taiwan Tel: 02-719-2377 Fax: 02-719-5951
NEC do Brasil S.A.
Sao Paulo-SP, Brasil Tel: 011-889-1680 Fax: 011-889-1689
J96. 8
93
PD784035Y, 784036Y, 784037Y, 784038Y
Caution Purchase of NEC I2C components conveys a license under the Philips I2C Patent Rights to use these components in an I2C system, provided that the system conforms to the I2C Standard Specification as defined by Philips. EEPROM and IEBUS are trademarks of NEC Corporation. MS-DOS and Windows are either registered trademarks or trademarks of Microsoft Corporatin in the United States and/or other countries. IBM DOS, PC/AT, and PC DOS are trademarks of International Business Machines Corporation. HP9000 series 700 and HP-UX are trademarks of Hewlett-Packard Corporation. SPARCstation is a trademark of SPARC International, Inc. SunOS is a trademark of Sun Microsystems, Inc. NEWS and NEWS-OS are trademarks of Sony Corporation. The related documents indicated in this publication may include preliminary versions. However, preliminary versions are not marked as such.
The export of this product from Japan is regulated by the Japanese government. To export this product may be prohibited without governmental license, the need for which must be judged by the customer. The export or re-export of this product from a country other than Japan may also be prohibited without a license from that country. Please call an NEC sales representative.
No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Corporation. NEC Corporation assumes no responsibility for any errors which may appear in this document. NEC Corporation does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from use of a device described herein or any other liability arising from use of such device. No license, either express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC Corporation or others. While NEC Corporation has been making continuous effort to enhance the reliability of its semiconductor devices, the possibility of defects cannot be eliminated entirely. To minimize risks of damage or injury to persons or property arising from a defect in an NEC semiconductor device, customers must incorporate sufficient safety measures in its design, such as redundancy, fire-containment, and anti-failure features. NEC devices are classified into the following three quality grades: "Standard", "Special", and "Specific". The Specific quality grade applies only to devices developed based on a customer designated "quality assurance program" for a specific application. The recommended applications of a device depend on its quality grade, as indicated below. Customers must check the quality grade of each device before using it in a particular application. Standard: Computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots Special: Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support) Specific: Aircrafts, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems or medical equipment for life support, etc. The quality grade of NEC devices is "Standard" unless otherwise specified in NEC's Data Sheets or Data Books. If customers intend to use NEC devices for applications other than those specified for Standard quality grade, they should contact an NEC sales representative in advance. Anti-radioactive design is not implemented in this product.
M4 96.5


▲Up To Search▲   

 
Price & Availability of UPD784035Y

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X